[DiscordArchive] Any idea why?
[DiscordArchive] Any idea why?
Archived author: Deleted User • Posted: 2021-06-01T00:25:29.302000+00:00
Original source
Any idea why?
Archived author: Deleted User • Posted: 2021-06-01T00:27:37.339000+00:00
Original source
It does work here tho:
```c++
// 56328 - Random Lightning Visual Effect
void ModDestHeight(SpellDestination& dest)
{
Position const offset = { 0.0f, 0.0f, -19.0f, 0.0f };
dest.RelocateOffset(offset);
}
void Register() override
{
OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_random_lightning_visual_effect::ModDestHeight, EFFECT_0, TARGET_DEST_CASTER_RANDOM);
}
```
Archived author: Deleted User • Posted: 2021-06-01T00:35:52.167000+00:00
Original source
Nvm, GetExplTargetDest() seems to do the trick