mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 21:10:23 +00:00
Prevent console error spam when attacking gadgets
This commit is contained in:
parent
d877d7eebc
commit
6d98743025
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user