Commit 6d987430 authored by Melledy's avatar Melledy
Browse files

Prevent console error spam when attacking gadgets

parent d877d7ee
...@@ -346,6 +346,11 @@ public class Scene { ...@@ -346,6 +346,11 @@ public class Scene {
} }
} }
// Sanity check
if (target.getFightProperties() == null) {
return;
}
// Lose hp // Lose hp
target.addFightProperty(FightProperty.FIGHT_PROP_CUR_HP, -result.getDamage()); target.addFightProperty(FightProperty.FIGHT_PROP_CUR_HP, -result.getDamage());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment