[7348] Remove hack code from IsDeathPersistentSpell. Author: VladimirMangos

Re-apply zone dependent auras at resurrection by triggering zone update for player.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-02-27 12:28:10 -06:00
1 parent 4cdb56a967
commit 2dbe092d9f
3 files changed
+5 -13

No files matched your search

+3 -3
View File
@@ -3972,13 +3972,13 @@ 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);
SetToNotify();
// some items limited to specific map
DestroyZoneLimitedItem( true, GetZoneId());
if(!applySickness)
return;