From a87bd1434287f4a34afb04418caba234ea566ce0 Mon Sep 17 00:00:00 2001 From: Sean Porter Date: Fri, 27 Dec 2013 14:50:01 -0800 Subject: [PATCH] The attack target can still be an NPC without being an instance of Player. --- src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index 3ff596aeb..df4fd422d 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -302,7 +302,7 @@ public final class CombatUtils { else if (attacker instanceof Player) { Player player = (Player) attacker; - if (Misc.isNPCEntity(player)) { + if (Misc.isNPCEntity(player) || Misc.isNPCEntity(target)) { return; }