mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7348] Remove hack code from IsDeathPersistentSpell.
Re-apply zone dependent auras at resurrection by triggering zone update for player.
This commit is contained in:
parent
19c513fc61
commit
9e7e374077
3 changed files with 5 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -338,14 +338,6 @@ inline bool IsPassiveSpellStackableWithRanks(SpellEntry const* spellProto)
|
|||
|
||||
inline bool IsDeathPersistentSpell(SpellEntry const *spellInfo)
|
||||
{
|
||||
switch(spellInfo->Id)
|
||||
{
|
||||
case 40214: // Dragonmaw Illusion
|
||||
case 35480: case 35481: case 35482: // Human Illusion
|
||||
case 35483: case 39824: // Human Illusion
|
||||
return true;
|
||||
}
|
||||
|
||||
return spellInfo->AttributesEx3 & SPELL_ATTR_EX3_DEATH_PERSISTENT;
|
||||
}
|
||||
|
||||
|
|
@ -1005,7 +997,7 @@ class SpellMgr
|
|||
SpellBonusMap mSpellBonusMap;
|
||||
SkillLineAbilityMap mSkillLineAbilityMap;
|
||||
SpellPetAuraMap mSpellPetAuraMap;
|
||||
PetLevelupSpellMap mPetLevelupSpellMap;
|
||||
PetLevelupSpellMap mPetLevelupSpellMap;
|
||||
};
|
||||
|
||||
#define spellmgr SpellMgr::Instance()
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7347"
|
||||
#define REVISION_NR "7348"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue