diff --git a/Server/src/main/java/core/game/node/entity/Entity.java b/Server/src/main/java/core/game/node/entity/Entity.java index 4c4045b3e..54d48c6e5 100644 --- a/Server/src/main/java/core/game/node/entity/Entity.java +++ b/Server/src/main/java/core/game/node/entity/Entity.java @@ -515,7 +515,7 @@ public abstract class Entity extends Node { Entity victim = state.getVictim(); CombatStyle type = state.getStyle(); if (state.getArmourEffect() != ArmourSet.VERAC && !entity.isIgnoreProtection(type) && victim.hasProtectionPrayer(type)) { - return hit *= entity instanceof Player ? 0.6 : 0; + return hit *= (entity instanceof Player && victim instanceof Player) ? 0.6 : 0; } return hit; } diff --git a/Server/src/main/java/core/game/node/entity/npc/NPC.java b/Server/src/main/java/core/game/node/entity/npc/NPC.java index 9486ce73f..4fcdcf23d 100644 --- a/Server/src/main/java/core/game/node/entity/npc/NPC.java +++ b/Server/src/main/java/core/game/node/entity/npc/NPC.java @@ -653,7 +653,7 @@ public class NPC extends Entity { @Override public boolean hasProtectionPrayer(CombatStyle style) { - return false; + return getProperties().getProtectStyle() == style; } /** @@ -995,4 +995,4 @@ public class NPC extends Entity { this.neverWalks = neverWalks; } -} \ No newline at end of file +}