Core/Creatures: Implemented unsummoning and resummoning critter pets on flying mounts and teleports (and related static flags)
Port From (https://github.com/TrinityCore/TrinityCore/commit/f2ce5072d62e2835c4426220ebf8ade5fa67a79b)
This commit is contained in:
@@ -139,7 +139,10 @@ namespace Game
|
||||
mover.RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags.LandingOrFlight); // Parachutes
|
||||
|
||||
if (opcode == ClientOpcodes.MoveSetFly || opcode == ClientOpcodes.MoveSetAdvFly)
|
||||
{
|
||||
_player.UnsummonPetTemporaryIfAny(); // always do the pet removal on current client activeplayer only
|
||||
_player.UnsummonBattlePetTemporaryIfAny(true);
|
||||
}
|
||||
|
||||
movementInfo.Guid = mover.GetGUID();
|
||||
movementInfo.Time = AdjustClientMovementTime(movementInfo.Time);
|
||||
@@ -408,6 +411,7 @@ namespace Game
|
||||
|
||||
// resummon pet
|
||||
player.ResummonPetTemporaryUnSummonedIfAny();
|
||||
player.ResummonBattlePetTemporaryUnSummonedIfAny();
|
||||
|
||||
//lets process all delayed operations on successful teleport
|
||||
player.ProcessDelayedOperations();
|
||||
|
||||
Reference in New Issue
Block a user