Use ToTotem() in a case.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2010-03-27 16:21:37 +01:00
parent ce8cc85dfa
commit d9de0874ae
+3 -3
View File
@@ -3653,10 +3653,10 @@ void Unit::_UnapplyAura(AuraApplicationMap::iterator &i, AuraRemoveMode removeMo
assert(!aurApp->GetEffectMask()); assert(!aurApp->GetEffectMask());
// Remove totem at next update if totem looses its aura // 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) if (this->ToTotem()->GetSpell() == aura->GetId() && this->ToTotem()->GetTotemType() == TOTEM_PASSIVE)
this->ToTotem()->setDeathState(JUST_DIED); this->ToTotem()->setDeathState(JUST_DIED);
} }
// Remove aurastates only if were not found // Remove aurastates only if were not found