diff options
author | megamage <none@none> | 2009-03-14 19:32:34 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-14 19:32:34 -0600 |
commit | c416cf93992002dfe08fc9f1857f6715151a08e2 (patch) | |
tree | 81eb78e616d00d008a32834b49f3ee0e7c9d058e | |
parent | 721f1d98b56b4f0c7f46bb1d2e17e01e6fbbf956 (diff) |
*Apply flying visual effect for flight auras.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuras.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 98f49ed127d..d3249e09c25 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -5232,9 +5232,15 @@ void Aura::HandleAuraAllowFlight(bool apply, bool Real) // allow fly WorldPacket data; if(apply) + { data.Initialize(SMSG_MOVE_SET_CAN_FLY, 12); + m_target->SetByteFlag(UNIT_FIELD_BYTES_1, 3, 0x02); + } else + { data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12); + m_target->RemoveByteFlag(UNIT_FIELD_BYTES_1, 3, 0x02); + } data.append(m_target->GetPackGUID()); data << uint32(0); // unk m_target->SendMessageToSet(&data, true); |