[DiscordArchive] <@200677690838220800> when a missile spell triggers a second spell on hit (SPELL_EFFECT_TRIGGER_MISS
[DiscordArchive] <@200677690838220800> when a missile spell triggers a second spell on hit (SPELL_EFFECT_TRIGGER_MISS
Archived author: Telegrill • Posted: 2025-05-05T19:26:08.519000+00:00
Original source
<@200677690838220800> when a missile spell triggers a second spell on hit (SPELL_EFFECT_TRIGGER_MISSILE), how does the core ensure that the triggered spell executes only when the missile visually arrives at the target, I see that the triggering spell calculates m_delayMoment using CalculateDelayMomentForDst based on trajectory and distance, but the triggered spell is cast immediately in EffectTriggerMissileSpell?
Archived author: Telegrill • Posted: 2025-05-05T19:26:47.123000+00:00
Original source
what ensures the triggered spell's effect timing matches the missile impact, is it just the target selection logic in SelectSpellTargets carrying distance info or does the missile delay propagate in some other way?
Archived author: Tea • Posted: 2025-05-05T19:31:36.496000+00:00
Original source
distance to dest + spellinfo->Speed
Archived author: Tea • Posted: 2025-05-05T19:31:41.666000+00:00
Original source
its that simple
Archived author: Telegrill • Posted: 2025-05-05T19:32:33.072000+00:00
Original source
so it has nothing to do with args setting what spell is triggering the spell
Archived author: Tea • Posted: 2025-05-05T19:32:44.946000+00:00
Original source
no, why would it
Archived author: Tea • Posted: 2025-05-05T19:33:00.616000+00:00
Original source
dont unlearn things you already know about spell launch and hit effect phase
Archived author: Telegrill • Posted: 2025-05-05T19:37:12.986000+00:00
Original source
yeah cause it didn't make any sense to me that the spell was somehow delayed extending the object lifetime