2
0
Эх сурвалжийг харах

Disable pet autoshots on unsummon.

JIV 15 жил өмнө
parent
commit
0af102ee6e

+ 6 - 0
L2_GameServer/java/com/l2jserver/gameserver/model/actor/L2Summon.java

@@ -482,6 +482,12 @@ public abstract class L2Summon extends L2Playable
 		    if (oldRegion != null) oldRegion.removeFromZones(this);
             getKnownList().removeAllKnownObjects();
 	        setTarget(null);
+	        for (int itemId : owner.getAutoSoulShot().keySet())
+	        {
+	        	String handler = owner.getInventory().getItemByItemId(itemId).getEtcItem().getHandlerName();
+	        	if (handler.contains("Beast"))
+	        		owner.disableAutoShot(itemId);
+	        }
 	    }
     }