NPCs to Players Magic Damage

This commit is contained in:
Kam committed 2025-03-06 13:26:49 -05:00
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;
}