mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/SholazarBasin): Fix Song of Wind and Water double credit (#23707)
This commit is contained in:
@@ -49,7 +49,6 @@ class spell_q12726_song_of_wind_and_water : public SpellScript
|
||||
cr->SetDisplayId(cr->GetDisplayId() == NPC_SOWAW_WATER_MODEL ? NPC_SOWAW_WIND_MODEL : NPC_SOWAW_WATER_MODEL);
|
||||
if (Player* player = cr->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
{
|
||||
player->KilledMonsterCredit(cr->GetDisplayId() == NPC_SOWAW_WATER_MODEL ? 29008 : 29009);
|
||||
CreatureTemplate const* ct = sObjectMgr->GetCreatureTemplate(cr->GetDisplayId() == NPC_SOWAW_WIND_MODEL ? NPC_SOWAW_WIND_ELEMENTAL : NPC_SOWAW_WATER_ELEMENTAL);
|
||||
for (uint8 i = 0; i < MAX_CREATURE_SPELLS; ++i)
|
||||
cr->m_spells[i] = ct->spells[i];
|
||||
|
||||
Reference in New Issue
Block a user