fix(Scripts/Zone): Quest 'Fire At Will!' should give group credit (#22145)
This commit is contained in:
@@ -122,9 +122,9 @@ public:
|
|||||||
if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID))
|
if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID))
|
||||||
{
|
{
|
||||||
if (GetClosestCreatureWithEntry(me, NPC_SOUTH_GATE, 200.0f))
|
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))
|
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
|
// complete quest part
|
||||||
if (Creature* bunny = GetClosestCreatureWithEntry(me, NPC_EXPLOSION_BUNNY, 200.0f))
|
if (Creature* bunny = GetClosestCreatureWithEntry(me, NPC_EXPLOSION_BUNNY, 200.0f))
|
||||||
bunny->CastSpell(nullptr, SPELL_EXPLOSION, TRIGGERED_NONE);
|
bunny->CastSpell(nullptr, SPELL_EXPLOSION, TRIGGERED_NONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user