[7741] Allow pets/charmed NPCs to count master's spell cast conditions in quests. Author: ApoC

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-03 21:00:08 -05:00
parent f17b20e9e7
commit de36c2fde3
2 changed files with 42 additions and 32 deletions
+3 -4
View File
@@ -8074,10 +8074,9 @@ bool Unit::HasAuraState(AuraState flag, SpellEntry const *spellProto, Unit * Cas
Unit *Unit::GetOwner() const
{
uint64 ownerid = GetOwnerGUID();
if(!ownerid)
return NULL;
return ObjectAccessor::GetUnit(*this, ownerid);
if(uint64 ownerid = GetOwnerGUID())
return ObjectAccessor::GetUnit(*this, ownerid);
return NULL;
}
Unit *Unit::GetCharmer() const