Summon Gargoyle: Ebon Gargoyle spawns on the ground instead of in the air
Current Behaviour
When a Death Knight casts Summon Gargoyle (49206), the summon visual plays in the air, but the Ebon Gargoyle (27829) appears on the ground below it and starts attacking immediately.
Expected Behaviour
The Gargoyle should appear in the air at the summon visual and fly down to the ground before it starts attacking.
Source
Needs sniff confirmation for the exact height, speed and any spawn spell. cMaNGOS spawns the Gargoyle, casts Risen Ghoul Spawn-In (47448) on it, and flies it to 15 yards above the target: https://github.com/cmangos/mangos-wotlk/commit/e6e3788f98633ea01e15df708dfe8e675fa28cc1
Steps to reproduce the problem
- Log in as a level 80 Unholy Death Knight with Summon Gargoyle.
- Target an enemy and cast Summon Gargoyle (49206).
- Watch the summon visual in the air: the Gargoyle appears on the ground below it instead of descending from it.
Extra Notes
AC already tries to do this: spell_dk_summon_gargoyle (src/server/scripts/Spells/spell_dk.cpp) raises the summon position by 15 yards, and npc_pet_dk_ebon_gargoyle::InitializeAI (src/server/scripts/Pet/pet_dk.cpp) flies it down with MoveCharge.
Possible lead (from reading the code, not tested): Spell::SummonGuardian (src/server/game/Spells/SpellEffects.cpp) only uses the adjusted destination when totalNumGuardians == 1, and that count includes the caster's existing controlled units. If the DK already has a Ghoul pet or other guardians out, the position goes through GetRandomPoint, which calls UpdateGroundPositionZ and drops the Gargoyle back to the ground, so the raised position is lost.
AC rev. hash/commit
AzerothCore rev. 80a36c8e25eedc7335e37b3aba03ca17f09c0652 (https://github.com/azerothcore/azerothcore-wotlk/commit/80a36c8e25eedc7335e37b3aba03ca17f09c0652)
Operating system
Windows 11 x64
Custom changes or Modules
None
Source: azerothcore/azerothcore-wotlk