Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] can someone open Spells/Spell.cpp at line 6073

[DiscordArchive] can someone open Spells/Spell.cpp at line 6073

[DiscordArchive] can someone open Spells/Spell.cpp at line 6073

rektbyfaith
Administrator
0
03-31-2020, 05:19 PM
#1
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?
rektbyfaith
03-31-2020, 05:19 PM #1

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?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)