--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-07 10:19:07 -06:00
4 changed files with 10 additions and 12 deletions
+5 -2
View File
@@ -6536,11 +6536,14 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
Unit* caster = GetCaster();
if(!caster || caster->GetTypeId() != TYPEID_PLAYER)
return;
if(caster->GetPet() != m_target)
return;
if(apply)
{
if(caster->GetPet() != m_target)
return;
m_target->SetCharmedOrPossessedBy(caster, true);
}
else
{
m_target->RemoveCharmedOrPossessedBy(caster);