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

This commit is contained in:
Sean Porter 2013-12-27 14:50:01 -08:00
parent d5990eee71
commit a87bd14342

View File

@ -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;
}