mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-10 11:10:33 +00:00
refactor(Core): AddEventAtOffset (#23140)
This commit is contained in:
@@ -193,7 +193,7 @@ struct npc_pet_gen_argent_pony_bridle : public ScriptedAI
|
||||
duration = cooldown;
|
||||
aura = SPELL_AURA_POSTMAN_S + i;
|
||||
_state = argentPonyService[TEAM_ALLIANCE][i];
|
||||
me->ToTempSummon()->UnSummon(duration);
|
||||
me->ToTempSummon()->UnSummon(Milliseconds(duration));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -204,7 +204,7 @@ struct npc_pet_gen_argent_pony_bridle : public ScriptedAI
|
||||
duration = cooldown * IN_MILLISECONDS;
|
||||
aura = SPELL_AURA_BANK_G + i;
|
||||
_state = argentPonyService[TEAM_HORDE][i];
|
||||
me->ToTempSummon()->UnSummon(duration);
|
||||
me->ToTempSummon()->UnSummon(Milliseconds(duration));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ struct npc_pet_mage_mirror_image : CasterAI
|
||||
newAura->SetDuration(visAura->GetDuration());
|
||||
}
|
||||
|
||||
me->m_Events.AddEvent(new DeathEvent(*me), me->m_Events.CalculateTime(29500));
|
||||
me->m_Events.AddEventAtOffset(new DeathEvent(*me), 29500ms);
|
||||
}
|
||||
|
||||
// Do not reload Creature templates on evade mode enter - prevent visual lost
|
||||
|
||||
Reference in New Issue
Block a user