mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 06:37:34 +00:00
NPCs to Players Magic Damage
This commit is contained in:
1 parent
8bcdaf5f11
commit
049d0baf5f
1 file changed
+3
@@ -248,6 +248,9 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
public boolean attackEntityAsMob(Entity receiver) {
|
||||
float f = stats.getAttackStrength();
|
||||
|
||||
if (receiver instanceof EntityPlayer && !isRemote())
|
||||
f = AttributeAttackUtil.calculateDamageNPCtoPlayer(this, (EntityPlayer) receiver, f);
|
||||
|
||||
if (stats.attackSpeed < 10) {
|
||||
receiver.hurtResistantTime = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user