Browse Source

BETA: NPC Vulnerability fix by Kingzor.

Zoey76 13 years ago
parent
commit
266389a912

+ 1 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/ai/L2AttackableAI.java

@@ -2314,13 +2314,12 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
 					continue;
 					continue;
 				if (obj instanceof L2PcInstance)
 				if (obj instanceof L2PcInstance)
 				{
 				{
-					if (MostHate != null || !MostHate.isDead())
+					if ((MostHate != null) && !MostHate.isDead())
 						actor.addDamageHate(obj, 0, actor.getHating(MostHate));
 						actor.addDamageHate(obj, 0, actor.getHating(MostHate));
 					else
 					else
 						actor.addDamageHate(obj, 0, 2000);
 						actor.addDamageHate(obj, 0, 2000);
 					actor.setTarget(obj);
 					actor.setTarget(obj);
 					setAttackTarget(obj);
 					setAttackTarget(obj);
-					
 				}
 				}
 				else if (obj instanceof L2Attackable)
 				else if (obj instanceof L2Attackable)
 				{
 				{