mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Core/GameObject): fixup allow use of Mage portal if caster is offline and still in group (#19853)
* fix portals * fixup! fix portals * fixup! fixup! fix portals
This commit is contained in:
@@ -1887,20 +1887,21 @@ void GameObject::Use(Unit* user)
|
||||
{
|
||||
if (!user->IsPlayer())
|
||||
return;
|
||||
|
||||
if (Group* group = user->ToPlayer()->GetGroup())
|
||||
if (ObjectGuid ownerGuid = GetOwnerGUID())
|
||||
{
|
||||
if (ObjectGuid ownerGuid = GetOwnerGUID())
|
||||
if (user->GetGUID() != ownerGuid)
|
||||
{
|
||||
if (group->IsMember(ownerGuid))
|
||||
{
|
||||
user->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
spellId = info->spellcaster.spellId;
|
||||
}
|
||||
Group* group = user->ToPlayer()->GetGroup();
|
||||
if (!group)
|
||||
return;
|
||||
if (!group->IsMember(ownerGuid))
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
user->RemoveAurasByType(SPELL_AURA_MOUNTED);
|
||||
spellId = info->spellcaster.spellId;
|
||||
break;
|
||||
}
|
||||
case GAMEOBJECT_TYPE_MEETINGSTONE: //23
|
||||
|
||||
Reference in New Issue
Block a user