///////////////////////////////////////////////// /// [Serverside] Assistance: GameObject can target a target with a helpful spell /// /// @note Relations API Tier 3 /// /// This function is not intented to have client-side counterpart by original design. /// Some gameobjects can be involved in spell casting, so server needs additional API support. /// It utilizes owners CanAssistSpell if owner exists ///////////////////////////////////////////////// bool GameObject::CanAssistSpell(Unit const* target, SpellEntry const* spellInfo) const { Unit* owner = GetOwner(); if (owner) return owner->CanAssistSpell(target, spellInfo); return IsFriend(target); }