Parcourir la source

Fix for #904, killing l2summon and getting karma in duel

Sami il y a 18 ans
Parent
commit
cb5b03822f

+ 3 - 0
L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -4021,6 +4021,9 @@ public final class L2PcInstance extends L2PlayableInstance
 			return;
 		}
 		
+		// If in duel and you kill (only can kill l2summon), do nothing
+		if (this.isInDuel() && targetPlayer.isInDuel()) return;
+		
         // If in Arena, do nothing
 		if (ArenaManager.getInstance().getArenaIndex(this.getX(),this.getY())!=-1 ||
 				ArenaManager.getInstance().getArenaIndex(target.getX(),target.getY())!=-1)