forked from Upstream/mmocore
sentinels npe fix for ticket 436
This commit is contained in:
parent
d3ae688da4
commit
0174c7b601
@ -19,7 +19,7 @@ public class PlayerDamageSkillHandler extends PassiveMythicMobSkillHandler {
|
||||
|
||||
@EventHandler
|
||||
private void event(EntityDamageEvent e) {
|
||||
if (e.getEntityType() == EntityType.PLAYER)
|
||||
if (e.getEntityType() == EntityType.PLAYER && !e.getEntity().hasMetadata("NPC"))
|
||||
castSkill(PlayerData.get((Player) e.getEntity()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user