diff options
author | megamage <none@none> | 2009-08-17 16:23:26 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-17 16:23:26 -0500 |
commit | a2bc73c255117aef7ee5ea00f67a958b255372b2 (patch) | |
tree | a89c3d1cafa37d825b32dc7f29acbb291b050b54 | |
parent | 077849c7fd0fc72507d97e9c9bb5e2e756e54091 (diff) |
[8375] Update start fall height at lost SPELL_AURA_FEATHER_FALL. Author: Lutik
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuras.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index cf90d2cc915..9cb21c0a2c4 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3178,8 +3178,12 @@ void AuraEffect::HandleAuraFeatherFall(bool apply, bool Real, bool /*changeAmoun else data.Initialize(SMSG_MOVE_NORMAL_FALL, 8+4); data.append(m_target->GetPackGUID()); - data << (uint32)0; - m_target->SendMessageToSet(&data,true); + data << uint32(0); + m_target->SendMessageToSet(&data, true); + + // start fall from current height + if(!apply && m_target->GetTypeId() == TYPEID_PLAYER) + ((Player*)m_target)->SetFallInformation(0, m_target->GetPositionZ()); } void AuraEffect::HandleAuraHover(bool apply, bool Real, bool /*changeAmount*/) |