-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Core/Spells: attempt to correct issue with triggered spells happening…
… before the spell actually hits the target. reply with any bugs that this causes please!
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spell lock (warlock's pet silence) fix?
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hopefully
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup spell lock work fine
thank you
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Kandera.. your awesome.. thank you for your hard work here :D
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have it fixed like that for few months, works fine.
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EffectTriggerSpell is all about triggering before spell hits target. See warrior's charge as an example. Charge stun should be applied before player reaches target.
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed Q.
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked the reason of spell lock problem. The spell is not working correctly because we currently handle haunch and hit phases separately in a case where spell is not a delayed spell. This makes all effects which work on LAUNCH phase to be executed before effects on HIT phase for instant hit spells, so the order of effect execution is disturbed and therfore SPELL_EFFECT_INTERRUPT_CAST is executed after SPELL_EFFECT_TRIGGER_SPELL, and that causes spelllock to fail. In conclusion: the problem is caused by how we handle hit on targets currently, SPELL_EFFECT_TRIGGER_SPELL should not be handled on hit (because delayed spells require this). This commit needs to be reverted and replaced with sollution that doesn't break delayed spells with SPELL_EFFECT_TRIGGER_SPELL. Fixing hit phase handling would be perfect, but it's rarther a long term goal.
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was waiting for someone to come to me with this. ill revert it :D
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue #6042 related?
d98f361
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes