fix(Core/SpellEffect): Increase speed of cat charge (#4795)

This commit is contained in:
Stefano Borzì
2021-03-20 05:54:25 +01:00
committed by GitHub
parent 933b0aa385
commit d82d2041b4

View File

@@ -1136,11 +1136,12 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex)
// Override, calculations are incorrect
if (m_spellInfo->Id == 49376) // feral charge
{
speedXY = pow(speedZ * 10, 2);
speedXY = pow(speedZ * 10, 8);
m_caster->GetMotionMaster()->MoveJump(x, y, z, speedXY, speedZ, 0, ObjectAccessor::GetUnit(*m_caster, m_caster->GetUInt64Value(UNIT_FIELD_TARGET)));
return;
}
else if (m_spellInfo->Id == 57604) // death grip
if (m_spellInfo->Id == 57604) // death grip
{
speedZ = 3.0f;
speedXY = 50.0f;