fix(Scripts/Zone): Quest 'Fire At Will!' should give group credit (#22145)

This commit is contained in:
avarishd 2025-05-18 15:33:33 +03:00 committed by GitHub
parent c3d3eb23de
commit 60d6274261
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);