*Remove aura type by caster in some cases. New function RemoveAuraTypeByCaster.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-13 17:25:46 -06:00
parent 7c33373289
commit 7dd699c076
6 changed files with 47 additions and 28 deletions
+2 -2
View File
@@ -19129,8 +19129,8 @@ void Player::StopCastingBindSight()
{
if (WorldObject* fTarget = GetFarsightTarget())
{
if (fTarget->isType(TYPEMASK_PLAYER | TYPEMASK_UNIT))
((Unit*)fTarget)->RemoveSpellsCausingAura(SPELL_AURA_BIND_SIGHT);
if (fTarget->isType(TYPEMASK_UNIT))
((Unit*)fTarget)->RemoveAuraTypeByCaster(SPELL_AURA_BIND_SIGHT, GetGUID());
}
}