Procházet zdrojové kódy

BETA: Fixing minor issue causing Party UI to do not remove servitor when it dies.
* Reported by: lion

Rumen Nikiforov před 11 roky
rodič
revize
042c9564d1

+ 7 - 2
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Summon.java

@@ -411,6 +411,11 @@ public abstract class L2Summon extends L2Playable
 	public void deleteMe(L2PcInstance owner)
 	{
 		owner.sendPacket(new PetDelete(getSummonType(), getObjectId()));
+		final L2Party party = owner.getParty();
+		if (party != null)
+		{
+			party.broadcastToPartyMembers(owner, new ExPartyPetWindowDelete(this));
+		}
 		
 		// pet will be deleted along with all his items
 		if (getInventory() != null)
@@ -429,8 +434,8 @@ public abstract class L2Summon extends L2Playable
 		{
 			getAI().stopFollow();
 			owner.sendPacket(new PetDelete(getSummonType(), getObjectId()));
-			L2Party party;
-			if ((party = owner.getParty()) != null)
+			final L2Party party = owner.getParty();
+			if (party != null)
 			{
 				party.broadcastToPartyMembers(owner, new ExPartyPetWindowDelete(this));
 			}