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:
hondacrx
2024-03-04 11:50:36 -05:00
parent a042fb4b57
commit 3a976b2353
6 changed files with 61 additions and 5 deletions
+4
View File
@@ -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();