Explorar o código

BETA: Improvement for [6326]

Nos %!s(int64=11) %!d(string=hai) anos
pai
achega
31505a0f71

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

@@ -9800,12 +9800,9 @@ public final class L2PcInstance extends L2Playable
 		startParalyze();
 		setIsInvul(true);
 		getAppearance().setInvisible();
-		// sendPacket(new GMHide(1));
 		sendPacket(new ObservationMode(loc));
 		
-		decayMe();
-		setLocation(loc);
-		spawnMe();
+		teleToLocation(loc, false);
 		
 		broadcastUserInfo();
 	}
@@ -9869,11 +9866,9 @@ public final class L2PcInstance extends L2Playable
 	{
 		setTarget(null);
 		
-		decayMe();
-		setLocation(_lastLoc);
+		teleToLocation(_lastLoc, false);
 		unsetLastLocation();
 		sendPacket(new ObservationReturn(getLocation()));
-		spawnMe();
 		
 		setIsParalyzed(false);
 		if (!isGM())