mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-01 01:23:25 +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
|
@EventHandler
|
||||||
private void event(EntityDamageEvent e) {
|
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()));
|
castSkill(PlayerData.get((Player) e.getEntity()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user