[8331] Restore spirit guids work, step 2 Author: VladimirMangos

Remove hack in battleground code that prevent proper work guids in result
    sabotage of now correct work spell itself.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-09 15:33:45 -05:00
parent 677b7b9757
commit 3eb938b8de

View File

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