Skip to content

Commit

Permalink
Core/Spells: Removed early access_requirement checks for summon spell…
Browse files Browse the repository at this point in the history
…s to prevent cross map inventory access (it is checked later by TeleportTo)

Closes #26877
Closes #29906
  • Loading branch information
Shauren committed May 31, 2024
1 parent 33ec319 commit 4a30ca0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5874,8 +5874,6 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
InstanceTemplate const* instance = sObjectMgr->GetInstanceTemplate(mapId);
if (!instance)
return SPELL_FAILED_TARGET_NOT_IN_INSTANCE;
if (!target->Satisfy(sObjectMgr->GetAccessRequirement(mapId, difficulty), mapId))
return SPELL_FAILED_BAD_TARGETS;
}
break;
}
Expand Down

0 comments on commit 4a30ca0

Please sign in to comment.