TrinityCore icon indicating copy to clipboard operation
TrinityCore copied to clipboard

Dismount - You can't do this while moving

Open Zaranthos opened this issue 14 years ago • 37 comments

When mounted if you right click an object or cast a spell it used to dismount fully before attempting the action so the action was successful. Now it seems it tries to do it as you dismount so you get a client error (you can't do this while moving).

2012-04-15 17:41:37 +0200 (39b3589dcb54+) (Win64, Release) TDB_full_335.11.46_2012_02_13 (+updates)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Zaranthos avatar Apr 17 '12 13:04 Zaranthos

Happens from flying mounts on both my mage and paladin but not from my paladins charger summoned mount.

Zaranthos avatar Apr 17 '12 13:04 Zaranthos

Doesn't happen from horse mounts but does from gryphons. Happens from paladin charger mount to other mounts though.

Zaranthos avatar Apr 17 '12 13:04 Zaranthos

My paladin can cast seals and blessings from a gryphon mount without errors but can't mine without getting a movement error.

Zaranthos avatar Apr 18 '12 17:04 Zaranthos

I read in general chat on my server today that a druid had an issue when it would leave flight form while over water (sea) and get placed at the bottom of the sea; don't know if the druid part is new, but the "falling after dismount" definitely is and it's a recent (past few weeks) change.

Loginisalreadytaken avatar May 03 '12 02:05 Loginisalreadytaken

confirm bug in druids cat form and fly form have this issue

milotic avatar May 03 '12 02:05 milotic

Sounds like there's a missing StopMoving() somewhere between the dismount and cast action.

MrSmite avatar May 03 '12 04:05 MrSmite

Might be not enough delay to allow for animation movement to stop also.

Zaranthos avatar May 03 '12 06:05 Zaranthos

Anyone check into this? This never used to happen. You could fly, land, mine/gather/cast/skin/etc without errors and now from all gryphons and some other mounts this fails to work.

This could be a general movement issue since I've also insta-killed myself when running up to the Dalaran teleporter that teleports you to the ground and it thinks I was still moving and calculates falling damage when it teleports me to the ground instantly killing me. I've also used my HS from a moving ship and been instantly killed when I land at the inn.

Zaranthos avatar Jun 01 '12 18:06 Zaranthos

it happens with my paladin and DK mount , really annoying when im trying to catch someone

chocopanda avatar Jun 14 '12 04:06 chocopanda

This bug is just annoying. It's probably just a delay needed before action to allow dismount to complete. Can't be that difficult to fix for any dev? I'd settle for a hack at this point because this bug is tiresome.

Zaranthos avatar Jul 04 '12 15:07 Zaranthos

Well, there are only two places where SPELL_FAILED_MOVING is used:

Spell::CheckCast()

// cancel autorepeat spells if cast start when moving

Spell::Prepare()

// don't allow channeled spells / spells with cast time to be casted while moving
// (even if they are interrupted on moving, spells with almost immediate effect get to have their effect processed before movement interrupter kicks in)

As for what I commented earlier, you really can't slap a call to StopMoving() in Player::Dismount() because a person can dismount while holding the movement keys and continue to move on foot.

When I get a chance this weekend, I'll see which one of those is bitching about moving.

MrSmite avatar Jul 06 '12 09:07 MrSmite

Hmm, it actually looks like it might start here:

When Unit::Dismount() gets called, it makes a call to RemoveAurasWithInterruptFlags() which in turn interrupts channeled spells and I believe mining and herbalism are considered channeled.

Edit: Need to see what flags are set on those two skills. Edit: It appears there's also SPELL_FAILED_NOT_MOUNTED which prevents you from casting if your flying mount isn't on the ground. I'm pretty sure you should just be dismounted (and fall to your death if too high).

MrSmite avatar Jul 06 '12 23:07 MrSmite

It does seem like it's animation based since there is animation when dismounting flying mounts that is more pronounced than from riding mounts. Channeling also seems to be involved since I can cast ice barrier from a flying mount (on the ground, not flying) but casting blizzard gives a movement error and fails to cast the spell (you're dismounted, error, no spell cast).

Zaranthos avatar Jul 25 '12 00:07 Zaranthos

If it has anything to do with animation I wonder why it doesn't affect this mount? http://old.wowhead.com/spell=61447 http://old.wowhead.com/spell=61425

The Traveler's Tundra Mammoth does not have this dismount problem but these do. There are a lot more. http://old.wowhead.com/spell=63844 http://old.wowhead.com/spell=32235 http://old.wowhead.com/spell=75596 http://old.wowhead.com/spell=32242

Zaranthos avatar Jul 28 '12 01:07 Zaranthos

please try

diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 29dcde9..4d7b0df 100755
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -3248,7 +3248,7 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const* aurApp,
         if (mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK && (apply || (!target->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) && !target->HasAuraType(SPELL_AURA_FLY))))
         {
             target->SetCanFly(apply);
-            if (!apply)
+            if (!apply && target->HasUnitMovementFlag(MOVEMENTFLAG_FLYING))
             {
                 target->RemoveUnitMovementFlag(MOVEMENTFLAG_FLYING);
                 target->AddUnitMovementFlag(MOVEMENTFLAG_FALLING);

zwerg avatar Sep 10 '12 18:09 zwerg

Has this been fixed? I'm not noticing it from my paladin at the moment. Mining is working at least. I'll have to try some other mounts and spells.

Zaranthos avatar Jan 07 '13 04:01 Zaranthos

Still happens rarely. I was standing on a hill slope in Zangermarsh and it happened, I moved a bit and then it didn't. I suspect on one map spot I fell to the ground for a fraction of a second and the time between dismount and casting was enough to interrupt spell casting. It will be interesting to see if this is reproduced with mmaps.

Zaranthos avatar Jan 07 '13 15:01 Zaranthos

Core: 458f5b9502da DB: TDB 335.52

This seems to occur on dismount from any mount, when starting most actions. Things I've seen it on:

Gathering Herbs Mining Disenchanting Tailoring

drpepper2 avatar Sep 16 '13 20:09 drpepper2

Confirm

Walkum avatar Sep 16 '13 23:09 Walkum

Confirm

darkloveir avatar Oct 20 '13 18:10 darkloveir