[DiscordArchive] are you sure of that?
[DiscordArchive] are you sure of that?
Archived author: Telegrill • Posted: 2024-04-06T10:16:15.678000+00:00
Original source
are you sure of that?
Archived author: Telegrill • Posted: 2024-04-06T10:16:19.353000+00:00
Original source
<:fry:770403425107443722>
Archived author: Telegrill • Posted: 2024-04-06T10:16:45.076000+00:00
Original source
cause I remember validating both the spell and effects and Shauren didn't remove my spell validation
Archived author: ModoX • Posted: 2024-04-06T10:17:35.588000+00:00
Original source
```c
bool SpellScriptBase::ValidateSpellEffectImpl(uint32 spellId, SpellEffIndex effectIndex)
{
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE);
if (!spellInfo)
{
TC_LOG_ERROR("scripts.spells", "SpellScriptBase::ValidateSpellEffect: Spell {} does not exist.", spellId);
return false;
}
if (spellInfo->GetEffects().size() <= effectIndex)
{
TC_LOG_ERROR("scripts.spells", "SpellScriptBase::ValidateSpellEffect: Spell {} does not have EFFECT_{}.", spellId, uint32(effectIndex));
return false;
}
return true;
}
```
Archived author: Telegrill • Posted: 2024-04-06T10:17:42.162000+00:00
Original source
ah well
Archived author: Mematoru • Posted: 2024-04-06T10:17:50.711000+00:00
Original source
i mean it makes sense
Archived author: Telegrill • Posted: 2024-04-06T10:17:53.626000+00:00
Original source
in that case I might need to revisit some of my additions
Archived author: Mematoru • Posted: 2024-04-06T10:18:00.205000+00:00
Original source
else would be just weird
Archived author: Telegrill • Posted: 2024-04-06T10:18:27.982000+00:00
Original source
ah well no