diff options
| author | QAston <none@none> | 2010-08-04 19:16:44 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2010-08-04 19:16:44 +0200 |
| commit | 96eb7c513fa18ee523ae7a4a969e406ba7a2fc55 (patch) | |
| tree | 0b586ac4ada55c0dcb0924aed8b1a8d8ca7e186a /src/server/game/Server | |
| parent | 40e16bbbdb59d6c860fa9f47fae645cb7771b236 (diff) | |
*Some more research about spell target flags - thanks to Zor for info.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/Protocol/Handlers/PetHandler.cpp | 5 | ||||
| -rw-r--r-- | src/server/game/Server/Protocol/Handlers/SpellHandler.cpp | 20 |
2 files changed, 2 insertions, 23 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/PetHandler.cpp b/src/server/game/Server/Protocol/Handlers/PetHandler.cpp index 1cfcabe21e7..1f0857d9a46 100644 --- a/src/server/game/Server/Protocol/Handlers/PetHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/PetHandler.cpp @@ -694,11 +694,10 @@ void WorldSession::HandlePetCastSpellOpcode(WorldPacket& recvPacket) uint64 guid; uint32 spellid; uint8 cast_count; - uint8 unk_flags; // flags (if 0x02 - some additional data are received) - recvPacket >> guid >> cast_count >> spellid >> unk_flags; + recvPacket >> guid >> cast_count >> spellid; - sLog.outDebug("WORLD: CMSG_PET_CAST_SPELL, cast_count: %u, spellid %u, unk_flags %u", cast_count, spellid, unk_flags); + sLog.outDebug("WORLD: CMSG_PET_CAST_SPELL, cast_count: %u, spellid %u", cast_count, spellid); // This opcode is also sent from charmed and possessed units (players and creatures) if (!_player->GetGuardianPet() && !_player->GetCharm()) diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp index c47c235556f..ca7d0e9c4fd 100644 --- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp @@ -300,7 +300,6 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket) uint8 cast_count, unk_flags; recvPacket >> cast_count; recvPacket >> spellId; - recvPacket >> unk_flags; // flags (if 0x02 - some additional data are received) // ignore for remote control state (for player case) Unit* mover = _player->m_mover; @@ -360,25 +359,6 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket) return; } - // some spell cast packet including more data (for projectiles?) - if (unk_flags & 0x02) - { - //recvPacket.read_skip<float>(); // unk1, coords? - //recvPacket.read_skip<float>(); // unk1, coords? - uint8 unk1; - recvPacket >> unk1; // >> 1 or 0 - if (unk1) - { - recvPacket.read_skip<uint32>(); // >> MSG_MOVE_STOP - uint64 guid; // guid - unused - if (!recvPacket.readPackGUID(guid)) - return; - - MovementInfo movementInfo; - ReadMovementInfo(recvPacket, &movementInfo); - } - } - // auto-selection buff level base at target level (in spellInfo) if (targets.getUnitTarget()) { |
