refactor(Core/EventMap): Refactor EventMap and related scripts (#23121)
Co-authored-by: Kelno <3866946+kelno@users.noreply.github.com> Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
This commit is contained in:
@@ -923,7 +923,7 @@ struct npc_akama_illidan : public ScriptedAI
|
||||
me->m_Events.AddEventAtOffset([&] {
|
||||
Talk(SAY_AKAMA_COUNCIL_2);
|
||||
me->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP);
|
||||
}, 8000ms); // 7800ms
|
||||
}, 8s); // 7800ms
|
||||
}
|
||||
break;
|
||||
// Reached Door
|
||||
|
||||
@@ -262,7 +262,7 @@ struct boss_illidari_council_memberAI : public ScriptedAI
|
||||
|
||||
void KilledUnit(Unit*) override
|
||||
{
|
||||
if (events.GetNextEventTime(EVENT_KILL_TALK) == 0)
|
||||
if (!events.HasTimeUntilEvent(EVENT_KILL_TALK))
|
||||
{
|
||||
Talk(SAY_COUNCIL_SLAY);
|
||||
events.ScheduleEvent(EVENT_KILL_TALK, 6s);
|
||||
@@ -582,7 +582,7 @@ struct boss_veras_darkshadow : public boss_illidari_council_memberAI
|
||||
break;
|
||||
}
|
||||
|
||||
if (events.GetNextEventTime(EVENT_SPELL_VANISH_OUT) == 0)
|
||||
if (!events.HasTimeUntilEvent(EVENT_SPELL_VANISH_OUT))
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -251,7 +251,7 @@ struct npc_akama_shade : public ScriptedAI
|
||||
{
|
||||
Talk(SAY_BROKEN_FREE_2);
|
||||
}, 3);
|
||||
ScheduleUniqueTimedEvent(52000ms, [&]
|
||||
ScheduleUniqueTimedEvent(52s, [&]
|
||||
{
|
||||
std::list<Creature*> brokens;
|
||||
me->GetCreatureListWithEntryInGrid(brokens, NPC_ASHTONGUE_BROKEN, 40.0f);
|
||||
|
||||
Reference in New Issue
Block a user