The Erebus

The Erebus

16M Downloads

Erebus mobs can attack even when dead

Funwayguy opened this issue ยท 2 comments

commented

It appears that a custom attack AI used in Erebus mobs is missing a check for whether or not the attacker is still alive allowing mobs to still do damage while their death animation plays.

The 'attacker.isEntityAlive()' check should be placed within these two methods:

https://github.com/ganymedes01/TheErebus/blob/master/src/main/java/erebus/entity/ai/EntityErebusAIAttackOnCollide.java#L42

https://github.com/ganymedes01/TheErebus/blob/master/src/main/java/erebus/entity/ai/EntityErebusAIAttackOnCollide.java#L59

commented

Good catch - will do. :)

commented

Added Boolean. Lets hope that's all it is ;)