Use ToTotem() in a case.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -3653,7 +3653,7 @@ void Unit::_UnapplyAura(AuraApplicationMap::iterator &i, AuraRemoveMode removeMo
|
||||
assert(!aurApp->GetEffectMask());
|
||||
|
||||
// Remove totem at next update if totem looses its aura
|
||||
if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE && GetTypeId() == TYPEID_UNIT && this->ToCreature()->isTotem()&& ((TempSummon*)this)->GetSummonerGUID() == aura->GetCasterGUID())
|
||||
if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE && GetTypeId() == TYPEID_UNIT && this->ToCreature()->isTotem()&& this->ToTotem()->GetSummonerGUID() == aura->GetCasterGUID())
|
||||
{
|
||||
if (this->ToTotem()->GetSpell() == aura->GetId() && this->ToTotem()->GetTotemType() == TOTEM_PASSIVE)
|
||||
this->ToTotem()->setDeathState(JUST_DIED);
|
||||
|
||||
Reference in New Issue
Block a user