void Reset() { if (fm_Type == 0) fm_Type = GetForgeMasterType(); CheckForge(); }
void JustDied(Unit* /*killer*/) override { if (!_forgeId) _forgeId = GetForgeMasterType(); if (_forgeId) _instance->SetData(DATA_FORGE_1 + _forgeId - 1, DONE); }
void UpdateAI(const uint32 /*diff*/) { if(fm_Type == 0) fm_Type = GetForgeMasterType(); if(!UpdateVictim()) return; DoMeleeAttackIfReady(); }
void UpdateAI(uint32 /*diff*/) override { if (!_forgeId) _forgeId = GetForgeMasterType(); if (!UpdateVictim()) return; DoMeleeAttackIfReady(); }
void EnterCombat(Unit* /*who*/) override { if (!_forgeId) _forgeId = GetForgeMasterType(); if (_forgeId) _instance->SetData(DATA_FORGE_1 + _forgeId - 1, IN_PROGRESS); me->SetUInt32Value(UNIT_NPC_EMOTESTATE, EMOTE_ONESHOT_NONE); }
void Reset() override { if (!_forgeId) _forgeId = GetForgeMasterType(); if (!me->IsAlive()) return; if (_forgeId) _instance->SetData(DATA_FORGE_1 + _forgeId - 1, NOT_STARTED); }
void JustDied(Unit* /*pKiller*/) { if(fm_Type == 0) fm_Type = GetForgeMasterType(); if(pInstance) { switch(fm_Type) { case 1: pInstance->SetData(EVENT_FORGE_1,DONE); break; case 2: pInstance->SetData(EVENT_FORGE_2,DONE); break; case 3: pInstance->SetData(EVENT_FORGE_3,DONE); break; } } }
void EnterCombat(Unit* /*pWho*/) { if(fm_Type == 0) fm_Type = GetForgeMasterType(); if(pInstance) { switch(fm_Type) { case 1: pInstance->SetData(EVENT_FORGE_1,IN_PROGRESS); break; case 2: pInstance->SetData(EVENT_FORGE_2,IN_PROGRESS); break; case 3: pInstance->SetData(EVENT_FORGE_3,IN_PROGRESS); break; } } me->SetUInt32Value(UNIT_NPC_EMOTESTATE,EMOTE_ONESHOT_NONE); }