From c416cf93992002dfe08fc9f1857f6715151a08e2 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 14 Mar 2009 19:32:34 -0600 Subject: *Apply flying visual effect for flight auras. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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); -- cgit v1.2.3