mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Creatures: Implemented unsummoning and resummoning critter pets on flying mounts and teleports (and related static flags)
This commit is contained in:
@@ -234,6 +234,7 @@ void WorldSession::HandleMoveWorldportAck()
|
||||
|
||||
// resummon pet
|
||||
player->ResummonPetTemporaryUnSummonedIfAny();
|
||||
player->ResummonBattlePetTemporaryUnSummonedIfAny();
|
||||
|
||||
//lets process all delayed operations on successful teleport
|
||||
player->ProcessDelayedOperations();
|
||||
@@ -402,7 +403,10 @@ void WorldSession::HandleMovementOpcode(OpcodeClient opcode, MovementInfo& movem
|
||||
mover->RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags::LandingOrFlight); // Parachutes
|
||||
|
||||
if (opcode == CMSG_MOVE_SET_FLY || opcode == CMSG_MOVE_SET_ADV_FLY)
|
||||
{
|
||||
_player->UnsummonPetTemporaryIfAny(); // always do the pet removal on current client activeplayer only
|
||||
_player->UnsummonBattlePetTemporaryIfAny(true);
|
||||
}
|
||||
|
||||
/* process position-change */
|
||||
movementInfo.guid = mover->GetGUID();
|
||||
|
||||
Reference in New Issue
Block a user