*Remove possess aura when stop casting bindsight.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-22 11:32:29 -06:00
parent 93db1e0219
commit 763c81de3c
+7 -3
View File
@@ -19129,10 +19129,14 @@ WorldObject* Player::GetFarsightTarget() const
void Player::StopCastingBindSight()
{
if (WorldObject* fTarget = GetFarsightTarget())
if(WorldObject* target = GetFarsightTarget())
{
if (fTarget->isType(TYPEMASK_UNIT))
((Unit*)fTarget)->RemoveAuraTypeByCaster(SPELL_AURA_BIND_SIGHT, GetGUID());
if(target->isType(TYPEMASK_UNIT))
{
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_BIND_SIGHT, GetGUID());
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS, GetGUID());
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS_PET, GetGUID());
}
}
}