*Allow channeled spells to be casted on dead target
*Define relted spell attributes --HG-- branch : trunk
This commit is contained in:
@@ -16388,6 +16388,8 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
|
||||
// Do now before stats re-calculation cleanup for ghost state unexpected auras
|
||||
if (!isAlive())
|
||||
RemoveAllAurasOnDeath();
|
||||
else
|
||||
RemoveAllAurasRequiringDeadTarget();
|
||||
|
||||
//apply all stat bonuses from items and auras
|
||||
SetCanModifyStats(true);
|
||||
|
||||
@@ -12504,9 +12504,10 @@ void Unit::setDeathState(DeathState s)
|
||||
|
||||
if (oldDeathState != ALIVE && s == ALIVE)
|
||||
{
|
||||
//_ApplyAllAuraMods();
|
||||
// Reset display id on resurection - needed by corpse explosion to cleanup after display change
|
||||
SetDisplayId(GetNativeDisplayId());
|
||||
// TODO: fix this
|
||||
if (!HasAuraType(SPELL_AURA_TRANSFORM))
|
||||
SetDisplayId(GetNativeDisplayId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1609,6 +1609,7 @@ class Unit : public WorldObject
|
||||
void RemoveAllAuras();
|
||||
void RemoveArenaAuras(bool onleave = false);
|
||||
void RemoveAllAurasOnDeath();
|
||||
void RemoveAllAurasRequiringDeadTarget();
|
||||
void DelayOwnedAuras(uint32 spellId, uint64 caster, int32 delaytime);
|
||||
|
||||
void _RemoveAllAuraStatMods();
|
||||
|
||||
Reference in New Issue
Block a user