mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-25 07:49:31 -04:00
[7741] Allow pets/charmed NPCs to count master's spell cast conditions in quests. Author: ApoC
--HG-- branch : trunk
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user