fix(Scripts/ToC): solved issue twin valkyr's ball (#6352)

- Closes https://github.com/azerothcore/azerothcore-wotlk/issues/4903
This commit is contained in:
meow
2021-06-19 20:14:18 +02:00
committed by GitHub
parent 6e6d37ae56
commit 14516cc7b9

View File

@@ -275,7 +275,9 @@ struct boss_twin_valkyrAI : public ScriptedAI
if( me->HasUnitState(UNIT_STATE_CASTING) )
return;
switch( events.ExecuteEvent() )
uint8 eventId = events.ExecuteEvent();
switch(eventId)
{
case 0:
break;
@@ -293,7 +295,6 @@ struct boss_twin_valkyrAI : public ScriptedAI
case EVENT_SUMMON_BALLS_2:
case EVENT_SUMMON_BALLS_3:
{
uint8 eventId = events.ExecuteEvent();
uint8 count = 0;
if( IsHeroic() )
count = eventId == EVENT_SUMMON_BALLS_3 ? 36 : 6;