mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/VioletHold: Fix correct boss erekem repeat time interval
Updates coverity issue #1318019
This commit is contained in:
@@ -208,7 +208,10 @@ class boss_erekem : public CreatureScript
|
||||
if (Unit* ally = DoSelectLowestHpFriendly(40.0f))
|
||||
DoCast(ally, SPELL_CHAIN_HEAL);
|
||||
|
||||
task.Repeat(!CheckGuardAlive() ? Seconds(3) : Seconds(8), Seconds(11));
|
||||
if (!CheckGuardAlive())
|
||||
task.Repeat(Seconds(3));
|
||||
else
|
||||
task.Repeat(Seconds(8), Seconds(11));
|
||||
});
|
||||
|
||||
scheduler.Schedule(Seconds(2), Seconds(8), [this](TaskContext task)
|
||||
|
||||
Reference in New Issue
Block a user