Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] <@200677690838220800> when a missile spell triggers a second spell on hit (SPELL_EFFECT_TRIGGER_MISS

rektbyfaith
Administrator
0
05-05-2025, 07:26 PM
#1
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?
rektbyfaith
05-05-2025, 07:26 PM #1

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?

rektbyfaith
Administrator
0
05-05-2025, 07:26 PM
#2
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?
rektbyfaith
05-05-2025, 07:26 PM #2

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?

rektbyfaith
Administrator
0
05-05-2025, 07:31 PM
#3
Archived author: Tea • Posted: 2025-05-05T19:31:36.496000+00:00
Original source

distance to dest + spellinfo->Speed
rektbyfaith
05-05-2025, 07:31 PM #3

Archived author: Tea • Posted: 2025-05-05T19:31:36.496000+00:00
Original source

distance to dest + spellinfo->Speed

rektbyfaith
Administrator
0
05-05-2025, 07:31 PM
#4
Archived author: Tea • Posted: 2025-05-05T19:31:41.666000+00:00
Original source

its that simple
rektbyfaith
05-05-2025, 07:31 PM #4

Archived author: Tea • Posted: 2025-05-05T19:31:41.666000+00:00
Original source

its that simple

rektbyfaith
Administrator
0
05-05-2025, 07:32 PM
#5
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
rektbyfaith
05-05-2025, 07:32 PM #5

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

rektbyfaith
Administrator
0
05-05-2025, 07:32 PM
#6
Archived author: Tea • Posted: 2025-05-05T19:32:44.946000+00:00
Original source

no, why would it
rektbyfaith
05-05-2025, 07:32 PM #6

Archived author: Tea • Posted: 2025-05-05T19:32:44.946000+00:00
Original source

no, why would it

rektbyfaith
Administrator
0
05-05-2025, 07:33 PM
#7
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
rektbyfaith
05-05-2025, 07:33 PM #7

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

rektbyfaith
Administrator
0
05-05-2025, 07:37 PM
#8
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
rektbyfaith
05-05-2025, 07:37 PM #8

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

Recently Browsing
 
Recently Browsing