mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
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:
@@ -49,7 +49,7 @@ struct npc_pet_gen_soul_trader_beacon : public ScriptedAI
|
||||
npc_pet_gen_soul_trader_beacon(Creature* c) : ScriptedAI(c)
|
||||
{
|
||||
events.Reset();
|
||||
events.ScheduleEvent(EVENT_INITIAL_TALK, 0);
|
||||
events.ScheduleEvent(EVENT_INITIAL_TALK, 0ms);
|
||||
if (me->ToTempSummon())
|
||||
if (Unit* owner = me->ToTempSummon()->GetOwner())
|
||||
{
|
||||
@@ -65,7 +65,7 @@ struct npc_pet_gen_soul_trader_beacon : public ScriptedAI
|
||||
if (spellInfo->Id == SPELL_STEAL_ESSENCE_VISUAL && target == me)
|
||||
{
|
||||
Talk(1);
|
||||
events.ScheduleEvent(EVENT_ADD_TOKEN, 3000);
|
||||
events.ScheduleEvent(EVENT_ADD_TOKEN, 3s);
|
||||
me->CastSpell(me, SPELL_EMOTE_STATE_SWIM_RUN, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user