Prechádzať zdrojové kódy

When summon is betraying master, moving to target orders are rejected as well.
Fixes #3071

DrHouse 16 rokov pred
rodič
commit
bf1604b8d5

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestActionUse.java

@@ -375,13 +375,13 @@ public final class RequestActionUse extends L2GameClientPacket
 				}
 				break;
 			case 53: // move to target
-				if (target != null && pet != null && pet != target && !pet.isMovementDisabled())
+				if (target != null && pet != null && pet != target && !pet.isMovementDisabled() && !pet.isBetrayed())
 				{
 					pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(target.getX(), target.getY(), target.getZ(), 0));
 				}
 				break;
 			case 54: // move to target hatch/strider
-				if (target != null && pet != null && pet != target && !pet.isMovementDisabled())
+				if (target != null && pet != null && pet != target && !pet.isMovementDisabled() && !pet.isBetrayed())
 				{
 					pet.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new L2CharPosition(target.getX(), target.getY(), target.getZ(), 0));
 				}