fix(Scripts/ZulGurub): Fixed never-ending Thousand Blades during Rena… (#12105)
fix(Scripts/ZulGurub): Fixed never-ending Thousand Blades during Renataki encounter. Fixes #12078
This commit is contained in:
@@ -212,8 +212,8 @@ public:
|
|||||||
DoCast(target, SPELL_THOUSAND_BLADES, false);
|
DoCast(target, SPELL_THOUSAND_BLADES, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
_thousandBladesTargets.erase(itr);
|
if (_thousandBladesTargets.erase(itr) != _thousandBladesTargets.end())
|
||||||
|
{
|
||||||
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 500ms);
|
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 500ms);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -221,6 +221,12 @@ public:
|
|||||||
_thousandBladesCount = urand(2, 5);
|
_thousandBladesCount = urand(2, 5);
|
||||||
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 15s, 22s);
|
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 15s, 22s);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_thousandBladesCount = urand(2, 5);
|
||||||
|
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 15s, 22s);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user