[DiscordArchive] can someone open Spells/Spell.cpp at line 6073
[DiscordArchive] can someone open Spells/Spell.cpp at line 6073
Archived author: Barbz • Posted: 2020-03-31T17:19:55.627000+00:00
Original source
can someone open Spells/Spell.cpp at line 6073
At line `case SPELL_EFFECT_SUMMON_RAF_FRIEND:` there is no check for access_requirement, so I think with this system someone can summon his RAF friend to an instance while his friend cannot normally enter it because of access_requirement
Imo we should add this
```cpp
if (!target->Satisfy(sObjectMgr->GetAccessRequirement(mapId, difficulty), mapId))
return SPELL_FAILED_BAD_TARGETS;
```
<@&262883768300208129> <@244521278776541188> what do you think?