Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DK/Spell Death Grip shoud intrerupt npc cast too #26137

Closed
CraftedRO opened this issue Feb 23, 2021 · 5 comments
Closed

DK/Spell Death Grip shoud intrerupt npc cast too #26137

CraftedRO opened this issue Feb 23, 2021 · 5 comments

Comments

@CraftedRO
Copy link
Contributor

Description:

Death Knight spell Death Grip dosen't intrerupt npc-s / mobs .

Expected behaviour:

Death Knight spell Death Grip shoud intrerupt npc-s / mobs too like it does on players .

Gripping a target will interrupt any cast currently in progress. This can be used to great effect in PvP, interrupting healers or preventing node captures. Casting will be interrupted even if the target is barely moved, such as when engaging a caster at point-blank range.

Steps to reproduce the problem:

  1. For a quick reproduction make a Death Knight level 80 , .tele icecrown and go to Sindragosa's Fall - Icecrown , there you'll find some Frostbrood Whelp
  2. Use Death Grip on them when they cast Frost Blast.
  3. Notice they won't be intrerupted .

Branch(es):

3.3.5

TC rev. hash/commit: e2ba73e

TrinityCore rev. e2ba73e 2021-02-23 02:17:09 +0200 (3.3.5 branch) (Win64, Release, Static)

Operating system:

Windows 10 x64

2021-02-23.21-04-57.mp4
@CraftedRO
Copy link
Contributor Author

400aef3 still valid, just tried smth like this, it works but for some reason most of the time it break the pull effect not sure why
    void HandleDummy(SpellEffIndex /*effIndex*/)
    {
        if (Unit* target = GetHitUnit())
        {
            if (target->HasUnitState(UNIT_STATE_CASTING))
                target->CastStop(); // Stop casting

            else if (!target->HasAuraType(SPELL_AURA_DEFLECT_SPELLS)) // Deterrence
                target->CastSpell(GetExplTargetDest()->GetPosition(), GetEffectValue(), true);
        }
    }
Here's a video recorded on cata ptr 4.4.0.54670, this is how shoud work:
2024-05-15.11-05-54.mp4

@Aokromes
Copy link
Member

yeah a lot of times if you use death grip over a mob that is casting and ain't rooted pull fails.

@Shauren
Copy link
Member

Shauren commented May 15, 2024

Unconditionally interrupting is wrong - it should respect interrupt flags (not all npc spells are interrupted on movement)

@Aokromes
Copy link
Member

one good sample of spell that can be interrupted but aint interrupted pulling is https://aowow.trinitycore.info/?npc=29822 lava brust, on cata ptr it's interrupted.

@CraftedRO
Copy link
Contributor Author

maybe related #18416

Shauren added a commit that referenced this issue May 18, 2024
…ls while moving

Closes #26137

(cherry picked from commit f80f931)
Ovahlord pushed a commit that referenced this issue May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants