aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/BattleGround.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 709cac492d5..a80a06b3572 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -280,10 +280,12 @@ void BattleGround::Update(uint32 diff)
sh = plr->GetMap()->GetCreature(itr->first);
// only for visual effect
if (sh)
- sh->CastSpell(sh, SPELL_SPIRIT_HEAL, true); // Spirit Heal, effect 117
+ // Spirit Heal, effect 117
+ sh->CastSpell(sh, SPELL_SPIRIT_HEAL, true);
}
- plr->CastSpell(plr, SPELL_RESURRECTION_VISUAL, true); // Resurrection visual
+ // Resurrection visual
+ plr->CastSpell(plr, SPELL_RESURRECTION_VISUAL, true);
m_ResurrectQueue.push_back(*itr2);
}
(itr->second).clear();
@@ -1397,12 +1399,7 @@ void BattleGround::AddPlayerToResurrectQueue(uint64 npc_guid, uint64 player_guid
if (!plr)
return;
- SpellEntry const *spellInfo = sSpellStore.LookupEntry( SPELL_WAITING_FOR_RESURRECT );
- if (spellInfo)
- {
- Aura *Aur = new Aura(spellInfo, 1, NULL, plr);
- plr->AddAura(Aur);
- }
+ plr->CastSpell(plr, SPELL_WAITING_FOR_RESURRECT, true);
}
void BattleGround::RemovePlayerFromResurrectQueue(uint64 player_guid)