DB/Quest: Hah...You're Not So Big Now!

Closes #22478

(cherry picked from commit 868f810e11)
This commit is contained in:
Killyana
2018-09-21 15:29:34 +02:00
committed by Shauren
parent f2456ff319
commit 910a00bb1e
3 changed files with 35 additions and 50 deletions

View File

@@ -1921,52 +1921,6 @@ public:
}
};
/*######
## Quest 11653: Hah... You're Not So Big Now!
######*/
enum NotSoBig
{
QUEST_YOU_RE_NOT_SO_BIG_NOW = 11653,
SPELL_AURA_NOTSOBIG_1 = 45672,
SPELL_AURA_NOTSOBIG_2 = 45673,
SPELL_AURA_NOTSOBIG_3 = 45677,
SPELL_AURA_NOTSOBIG_4 = 45681
};
class npc_magmoth_crusher : public CreatureScript
{
public:
npc_magmoth_crusher() : CreatureScript("npc_magmoth_crusher") { }
struct npc_magmoth_crusherAI : public ScriptedAI
{
npc_magmoth_crusherAI(Creature* creature) : ScriptedAI(creature) { }
void JustDied(Unit* killer) override
{
if (!killer || killer->GetTypeId() != TYPEID_PLAYER)
return;
Player* player = killer->ToPlayer();
if (player->GetQuestStatus(QUEST_YOU_RE_NOT_SO_BIG_NOW) == QUEST_STATUS_INCOMPLETE &&
(me->HasAura(SPELL_AURA_NOTSOBIG_1) || me->HasAura(SPELL_AURA_NOTSOBIG_2) ||
me->HasAura(SPELL_AURA_NOTSOBIG_3) || me->HasAura(SPELL_AURA_NOTSOBIG_4)))
{
Quest const* qInfo = sObjectMgr->GetQuestTemplate(QUEST_YOU_RE_NOT_SO_BIG_NOW);
if (qInfo)
player->KilledMonsterCredit(qInfo->Objectives[0].ObjectID);
}
}
};
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_magmoth_crusherAI(creature);
}
};
/*######
## Help Those That Cannot Help Themselves, Quest 11876
######*/
@@ -2505,7 +2459,6 @@ void AddSC_borean_tundra()
new npc_mootoo_the_younger();
new npc_bonker_togglevolt();
new npc_trapped_mammoth_calf();
new npc_magmoth_crusher();
new npc_valiance_keep_cannoneer();
new npc_warmage_coldarra();
new npc_hidden_cultist();