DoS should not affect boss mobs (#932)

This commit is contained in:
Nicholas Ignoffo 2016-09-29 18:44:38 -07:00
parent 7a42968633
commit 418dcd095a

View file

@ -37,6 +37,9 @@ public class ItemDaggerOfSacrifice extends Item implements IVariantProvider
if (target == null || attacker == null || attacker.worldObj.isRemote || (attacker instanceof EntityPlayer && !(attacker instanceof EntityPlayerMP)))
return false;
if (!target.isNonBoss())
return false;
if (target.isChild() || target instanceof EntityPlayer)
return false;