Fixed a bug that prevented banshees from dying
This commit is contained in:
@@ -81,8 +81,8 @@ public final class BansheeNPC extends AbstractNPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void checkImpact(BattleState state) {
|
public void onImpact(Entity entity, BattleState state) {
|
||||||
super.checkImpact(state);
|
super.onImpact(entity, state);
|
||||||
if (state.getAttacker() instanceof Player) {
|
if (state.getAttacker() instanceof Player) {
|
||||||
final Player player = (Player) state.getAttacker();
|
final Player player = (Player) state.getAttacker();
|
||||||
if (!hasEarMuffs(player)) {
|
if (!hasEarMuffs(player)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user