From 33d48155e38cc68a9a6a0ff859912eecb828a502 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 12:18:09 +0000 Subject: [PATCH] Core: a knockback or a pull moves a bot player A bot has no client to answer SMSG_MOVE_KNOCK_BACK, so knockbacks and pulls never moved it. The server now flies it as it flies a creature. naxx21: Magnetic Pull left Thaddius' tanks where they stood and both adds walked off their platforms. --- src/server/game/Entities/Unit/Unit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 5d7b400626..9be10b0d61 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -13174,7 +13174,10 @@ void Unit::KnockbackFrom(Position const& origin, float speedXY, float speedZ, fl } } - if (!player) + // A bot has no client to answer SMSG_MOVE_KNOCK_BACK, so a knockback or a pull never moved it: the server flies it as it flies a creature. + // naxx_thaddius 1116: Magnetic Pull left both tanks where they stood while Stalagg and Feugen swapped victims, and each add walked off its + // platform across the room to the other tank. + if (!player || (player == this && player->GetSession()->IsBot())) GetMotionMaster()->MoveKnockbackFrom(origin, speedXY, speedZ, angle, spellEffectExtraData); else {