mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Ahune): Chest and Quest (#19106)
* Add files via upload * Update boss_ahune.cpp * Update boss_ahune.cpp * Update boss_ahune.cpp
This commit is contained in:
@@ -158,7 +158,9 @@ enum Points
|
|||||||
|
|
||||||
enum Misc
|
enum Misc
|
||||||
{
|
{
|
||||||
MAX_FLAMECALLERS = 3
|
MAX_FLAMECALLERS = 3,
|
||||||
|
QUEST_SUMMON_AHUNE = 11691,
|
||||||
|
ITEM_MAGMA_TOTEM = 34953
|
||||||
};
|
};
|
||||||
|
|
||||||
Position const SummonPositions[] =
|
Position const SummonPositions[] =
|
||||||
@@ -307,8 +309,8 @@ struct npc_frozen_core : public ScriptedAI
|
|||||||
if (Creature* ahune = _instance->GetCreature(DATA_AHUNE))
|
if (Creature* ahune = _instance->GetCreature(DATA_AHUNE))
|
||||||
Unit::Kill(me, ahune);
|
Unit::Kill(me, ahune);
|
||||||
|
|
||||||
DoCast(SPELL_SUMMON_LOOT_MISSILE);
|
DoCastSelf(SPELL_SUMMON_LOOT_MISSILE, true);
|
||||||
DoCast(SPELL_MINION_DESPAWNER);
|
DoCastSelf(SPELL_MINION_DESPAWNER, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoAction(int32 action) override
|
void DoAction(int32 action) override
|
||||||
@@ -662,6 +664,9 @@ struct go_ahune_ice_stone : public GameObjectAI
|
|||||||
{
|
{
|
||||||
ClearGossipMenuFor(player);
|
ClearGossipMenuFor(player);
|
||||||
|
|
||||||
|
player->DestroyItemCount(ITEM_MAGMA_TOTEM, 1, true, false);
|
||||||
|
player->AreaExploredOrEventHappens(QUEST_SUMMON_AHUNE); //auto rewarded
|
||||||
|
|
||||||
if (Creature* ahuneBunny = _instance->GetCreature(DATA_AHUNE_BUNNY))
|
if (Creature* ahuneBunny = _instance->GetCreature(DATA_AHUNE_BUNNY))
|
||||||
ahuneBunny->AI()->DoAction(ACTION_START_EVENT);
|
ahuneBunny->AI()->DoAction(ACTION_START_EVENT);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user