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:
parent
ad411b49b7
commit
67010623a0
3 changed files with 4 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue