فهرست منبع

The attack target can still be an NPC without being an instance of Player.

Sean Porter 11 سال پیش
والد
کامیت
a87bd14342
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

+ 1 - 1
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;
             }