mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Added some missing SetFallInformation calls
Fixed HP drop bug on zeppelins Fixed possible packet relocation problems on huge transports
This commit is contained in:
@@ -4465,6 +4465,10 @@ void Spell::EffectCharge(SpellEffIndex /*effIndex*/)
|
||||
|
||||
if (effectHandleMode == SPELL_EFFECT_HANDLE_LAUNCH_TARGET)
|
||||
{
|
||||
// charge changes fall time
|
||||
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
m_caster->ToPlayer()->SetFallInformation(0, m_caster->GetPositionZ());
|
||||
|
||||
float speed = G3D::fuzzyGt(m_spellInfo->Speed, 0.0f) ? m_spellInfo->Speed : SPEED_CHARGE;
|
||||
// Spell is not using explicit target - no generated path
|
||||
if (m_preGeneratedPath.GetPathType() == PATHFIND_BLANK)
|
||||
@@ -4555,6 +4559,10 @@ void Spell::EffectLeapBack(SpellEffIndex effIndex)
|
||||
float speedz = damage/ 10.f;
|
||||
//1891: Disengage
|
||||
unitTarget->JumpTo(speedxy, speedz, m_spellInfo->SpellIconID != 1891);
|
||||
|
||||
// changes fall time
|
||||
if (m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
m_caster->ToPlayer()->SetFallInformation(0, m_caster->GetPositionZ());
|
||||
}
|
||||
|
||||
void Spell::EffectQuestClear(SpellEffIndex effIndex)
|
||||
|
||||
Reference in New Issue
Block a user