mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Movement: Corrected values sent in knockback packet when speedXY < 0
Co-authored-by: Seyden <saiifii@live.de>
This commit is contained in:
@@ -777,7 +777,7 @@ class boss_flame_leviathan_overload_device : public CreatureScript
|
||||
if (Unit* player = me->GetVehicle()->GetPassenger(SEAT_PLAYER))
|
||||
{
|
||||
me->GetVehicleBase()->CastSpell(player, SPELL_SMOKE_TRAIL, true);
|
||||
player->GetMotionMaster()->MoveKnockbackFrom(me->GetVehicleBase()->GetPositionX(), me->GetVehicleBase()->GetPositionY(), 30, 30);
|
||||
player->GetMotionMaster()->MoveKnockbackFrom(me->GetVehicleBase()->GetPosition(), 30, 30);
|
||||
player->ExitVehicle();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1012,7 +1012,7 @@ public:
|
||||
player->ExitVehicle();
|
||||
float horizontalSpeed = 3.0f;
|
||||
float verticalSpeed = 40.0f;
|
||||
player->KnockbackFrom(caster->GetPositionX(), caster->GetPositionY(), horizontalSpeed, verticalSpeed);
|
||||
player->KnockbackFrom(caster->GetPosition(), horizontalSpeed, verticalSpeed);
|
||||
caster->CastSpell(player, SPELL_PARACHUTE, true);
|
||||
|
||||
std::list<Creature*> explosionBunnys;
|
||||
|
||||
@@ -1400,7 +1400,7 @@ class spell_gen_ds_flush_knockback : public SpellScript
|
||||
float verticalSpeed = 8.0f;
|
||||
// This method relies on the Dalaran Sewer map disposition and Water Spout position
|
||||
// What we do is knock the player from a position exactly behind him and at the end of the pipe
|
||||
player->KnockbackFrom(target->GetPositionX(), player->GetPositionY(), horizontalSpeed, verticalSpeed);
|
||||
player->KnockbackFrom(target->GetPosition(), horizontalSpeed, verticalSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user