From e69f642dfeb7f5fe1999863e1443d2f5242e2597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E9=B9=BF?= <18535853+PkllonG@users.noreply.github.com> Date: Fri, 21 Jun 2024 09:40:23 +0800 Subject: [PATCH] fix(Core/Ahune): Chest and Quest (#19106) * Add files via upload * Update boss_ahune.cpp * Update boss_ahune.cpp * Update boss_ahune.cpp --- .../CoilfangReservoir/SlavePens/boss_ahune.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp b/src/server/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp index a3d7fc6e6..caa25161c 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SlavePens/boss_ahune.cpp @@ -158,7 +158,9 @@ enum Points enum Misc { - MAX_FLAMECALLERS = 3 + MAX_FLAMECALLERS = 3, + QUEST_SUMMON_AHUNE = 11691, + ITEM_MAGMA_TOTEM = 34953 }; Position const SummonPositions[] = @@ -307,8 +309,8 @@ struct npc_frozen_core : public ScriptedAI if (Creature* ahune = _instance->GetCreature(DATA_AHUNE)) Unit::Kill(me, ahune); - DoCast(SPELL_SUMMON_LOOT_MISSILE); - DoCast(SPELL_MINION_DESPAWNER); + DoCastSelf(SPELL_SUMMON_LOOT_MISSILE, true); + DoCastSelf(SPELL_MINION_DESPAWNER, true); } void DoAction(int32 action) override @@ -662,6 +664,9 @@ struct go_ahune_ice_stone : public GameObjectAI { 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)) ahuneBunny->AI()->DoAction(ACTION_START_EVENT);