Skip to content

Commit

Permalink
Fix delayed darkmoon cannon shoot animation.
Browse files Browse the repository at this point in the history
The custom anim opcode appears to be sent twice in sniff, the first time a second before 24731 is cast, the second after 24742 is cast.
  • Loading branch information
ratkosrb committed May 12, 2024
1 parent 578ac1c commit f60eda7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4448,6 +4448,18 @@ void Aura::HandlePeriodicTriggerSpell(bool apply, bool /*Real*/)
{
switch (GetId())
{
case 24743: // Cannon Prep
case 24832: // Cannon Prep
{
if (GameObject* pGo = ToGameObject(GetRealCaster()))
{
pGo->m_Events.AddLambdaEventAtOffset([pGo]()
{
pGo->SendGameObjectCustomAnim();
}, 3600);
}
break;
}
case 26869: // Amorous (Love is in the Air)
{
if (Creature* pCreature = target->ToCreature())
Expand Down

0 comments on commit f60eda7

Please sign in to comment.