Skip to content

Conversation

@DealsBeam
Copy link

The Distract spell was causing the target to stop moving because it was forcing the target to face the caster. This was happening because the SetFacingTo function in Spell::EffectDistract was clearing the movement stack.

This commit fixes the bug by removing the call to SetFacingTo, which prevents the movement stack from being cleared. A test case has been added to verify that the original movement is not interrupted.

The Distract spell was causing the target to stop moving because it was forcing the target to face the caster. This was happening because the `SetFacingTo` function in `Spell::EffectDistract` was clearing the movement stack.

This commit fixes the bug by removing the call to `SetFacingTo`, which prevents the movement stack from being cleared. A test case has been added to verify that the original movement is not interrupted.
@github-actions github-actions bot added CORE Related to the core UnitTests file-cpp Used to trigger the matrix build labels Oct 30, 2025
@Tereneckla
Copy link
Contributor

Did you also test that Distract still forces the targets to face the caster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE Related to the core file-cpp Used to trigger the matrix build UnitTests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants