mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
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,9 +212,15 @@ public:
|
||||
DoCast(target, SPELL_THOUSAND_BLADES, false);
|
||||
}
|
||||
|
||||
_thousandBladesTargets.erase(itr);
|
||||
|
||||
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 500ms);
|
||||
if (_thousandBladesTargets.erase(itr) != _thousandBladesTargets.end())
|
||||
{
|
||||
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 500ms);
|
||||
}
|
||||
else
|
||||
{
|
||||
_thousandBladesCount = urand(2, 5);
|
||||
events.ScheduleEvent(EVENT_THOUSAND_BLADES, 15s, 22s);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user