Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2025-05-23 19:55:02 +08:00
11 changed files with 112 additions and 34 deletions
@@ -141,6 +141,7 @@ struct npc_kiljaeden_controller : public NullCreatureAI
void Reset() override
{
scheduler.CancelAll();
instance->SetBossState(DATA_KILJAEDEN, NOT_STARTED);
summons.DespawnAll();
ResetOrbs();
@@ -122,9 +122,9 @@ public:
if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID))
{
if (GetClosestCreatureWithEntry(me, NPC_SOUTH_GATE, 200.0f))
player->KilledMonsterCredit(NPC_SOUTH_GATE_CREDIT);
player->RewardPlayerAndGroupAtEvent(NPC_SOUTH_GATE_CREDIT, player);
else if (GetClosestCreatureWithEntry(me, NPC_NORTH_GATE, 200.0f))
player->KilledMonsterCredit(NPC_NORTH_GATE_CREDIT);
player->RewardPlayerAndGroupAtEvent(NPC_NORTH_GATE_CREDIT, player);
// complete quest part
if (Creature* bunny = GetClosestCreatureWithEntry(me, NPC_EXPLOSION_BUNNY, 200.0f))
bunny->CastSpell(nullptr, SPELL_EXPLOSION, TRIGGERED_NONE);