[7348] Remove hack code from IsDeathPersistentSpell.

Re-apply zone dependent auras at resurrection by triggering zone update for player.
This commit is contained in:
VladimirMangos 2009-02-27 07:34:05 +03:00
parent 19c513fc61
commit 9e7e374077
3 changed files with 5 additions and 13 deletions

View file

@ -3868,12 +3868,12 @@ void Player::ResurrectPlayer(float restore_percent, bool applySickness)
SetPower(POWER_ENERGY, uint32(GetMaxPower(POWER_ENERGY)*restore_percent));
}
// trigger update zone for alive state zone updates
UpdateZone(GetZoneId());
// update visibility
ObjectAccessor::UpdateVisibilityForPlayer(this);
// some items limited to specific map
DestroyZoneLimitedItem( true, GetZoneId());
if(!applySickness)
return;