Prevent console error spam when attacking gadgets

This commit is contained in:
Melledy 2022-04-29 03:33:14 -07:00
parent d877d7eebc
commit 6d98743025

View File

@ -346,6 +346,11 @@ public class Scene {
}
}
// Sanity check
if (target.getFightProperties() == null) {
return;
}
// Lose hp
target.addFightProperty(FightProperty.FIGHT_PROP_CUR_HP, -result.getDamage());