[11644] Sets rage to zero and energie to 100% when entering battleground and arena

Move related code to Aura::HandleArenaPreparation (un-)apply code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
DaC 2011-06-18 20:27:43 +04:00 committed by VladimirMangos
parent 9300842b04
commit 92e0b5941f
3 changed files with 18 additions and 10 deletions

View file

@ -1220,13 +1220,8 @@ void BattleGround::AddPlayer(Player *plr)
plr->UnsummonPetTemporaryIfAny();
if(GetStatus() == STATUS_WAIT_JOIN) // not started yet
{
plr->CastSpell(plr, SPELL_ARENA_PREPARATION, true);
plr->SetHealth(plr->GetMaxHealth());
plr->SetPower(POWER_MANA, plr->GetMaxPower(POWER_MANA));
}
plr->CastSpell(plr, SPELL_ARENA_DAMPENING, true);
}
else