Scripts/Gundrak: Use std::chrono::duration overloads of EventMap (#25030)

Contributes to #25012

(cherry picked from commit 3a9b3259b8)
This commit is contained in:
Peter Keresztes Schmidt
2020-07-14 20:17:59 +02:00
committed by Shauren
parent e6e4edd768
commit 3d9885a302
2 changed files with 2 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ class boss_eck : public CreatureScript
{
if (!_berserk && me->HealthBelowPctDamaged(20, damage))
{
events.RescheduleEvent(EVENT_BERSERK, 1000);
events.RescheduleEvent(EVENT_BERSERK, 1s);
_berserk = true;
}
}

View File

@@ -88,10 +88,7 @@ enum GDSpellIds
SPELL_FIRE_BEAM_ELEMENTAL = 57072
};
enum GDInstanceMisc
{
TIMER_STATUE_ACTIVATION = 3500
};
constexpr Milliseconds TIMER_STATUE_ACTIVATION = 3500ms;
template <class AI, class T>
inline AI* GetGundrakAI(T* obj)