mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Movement: Corrected all speed checks after 23b6991273
Ref issue #19210
This commit is contained in:
@@ -422,7 +422,7 @@ void MotionMaster::MoveKnockbackFrom(float srcX, float srcY, float speedXY, floa
|
||||
if (_owner->GetTypeId() == TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
if (speedXY <= 0.1f)
|
||||
if (speedXY < 0.01f)
|
||||
return;
|
||||
|
||||
float x, y, z;
|
||||
@@ -458,7 +458,7 @@ void MotionMaster::MoveJumpTo(float angle, float speedXY, float speedZ)
|
||||
void MotionMaster::MoveJump(float x, float y, float z, float o, float speedXY, float speedZ, uint32 id, bool hasOrientation /* = false*/)
|
||||
{
|
||||
TC_LOG_DEBUG("misc", "Unit (GUID: %u) jumps to point (X: %f Y: %f Z: %f).", _owner->GetGUID().GetCounter(), x, y, z);
|
||||
if (speedXY <= 0.1f)
|
||||
if (speedXY < 0.01f)
|
||||
return;
|
||||
|
||||
float moveTimeHalf = speedZ / Movement::gravity;
|
||||
|
||||
@@ -206,7 +206,7 @@ bool MoveSplineInitArgs::Validate(Unit* unit) const
|
||||
return false;\
|
||||
}
|
||||
CHECK(path.size() > 1);
|
||||
CHECK(velocity > 0.01f);
|
||||
CHECK(velocity >= 0.01f);
|
||||
CHECK(time_perc >= 0.f && time_perc <= 1.f);
|
||||
//CHECK(_checkPathBounds());
|
||||
return true;
|
||||
|
||||
@@ -4528,7 +4528,7 @@ void Spell::EffectKnockBack(SpellEffIndex effIndex)
|
||||
float ratio = 0.1f;
|
||||
float speedxy = float(m_spellInfo->Effects[effIndex].MiscValue) * ratio;
|
||||
float speedz = float(damage) * ratio;
|
||||
if (speedxy < 0.1f && speedz < 0.1f)
|
||||
if (speedxy < 0.01f && speedz < 0.01f)
|
||||
return;
|
||||
|
||||
float x, y;
|
||||
|
||||
Reference in New Issue
Block a user