mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-30 05:57:41 +01:00
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