mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 01:29:07 +00:00
fix(Core): Adjustments to summoning ritual object handling. (#19600)
* Init. * Allow self-summoning. * Revert unintended change. Self-summoning still works fine without this being removed, I see no harm in putting it back.
This commit is contained in:
@@ -1906,8 +1906,8 @@ void GameObject::Use(Unit* user)
|
||||
|
||||
Player* targetPlayer = ObjectAccessor::FindPlayer(player->GetTarget());
|
||||
|
||||
// accept only use by player from same raid as caster, except caster itself
|
||||
if (!targetPlayer || targetPlayer == player || !targetPlayer->IsInSameRaidWith(player))
|
||||
// accept only use by player from same raid as caster
|
||||
if (!targetPlayer || !targetPlayer->IsInSameRaidWith(player))
|
||||
return;
|
||||
|
||||
//required lvl checks!
|
||||
@@ -1918,10 +1918,7 @@ void GameObject::Use(Unit* user)
|
||||
if (level < info->meetingstone.minLevel)
|
||||
return;
|
||||
|
||||
if (info->entry == 194097)
|
||||
spellId = 61994; // Ritual of Summoning
|
||||
else
|
||||
spellId = 23598; // Meeting Stone Summon
|
||||
spellId = 23598; // Meeting Stone Summon
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user