diff options
| author | kaelima <kaelima@live.se> | 2012-03-30 02:43:17 +0200 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2012-03-30 02:43:17 +0200 |
| commit | ac81411db461184a9d20cb43b44eca414df5e81e (patch) | |
| tree | 0ada4204be9dd76418ba3f2d57d6022f61ea2811 /src/server/game/Spells/Spell.cpp | |
| parent | bdf6cf5146b884591e3a033a31ca5b729fdff0ff (diff) | |
Core/Protocol:
- 5 new opcodes
- Some spell research and fixed MSG_CHANNEL_START
- Fixed SMSG_UPDATE_INSTANCE_ENCOUNTER_UNIT for 4.2.2, and removed SMSG_GAMEOBJECT_SPAWN_ANIM_OBSOLETE (which does not exist)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rwxr-xr-x | src/server/game/Spells/Spell.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8d98e4c2777..531a944bada 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -3858,7 +3858,7 @@ void Spell::SendSpellStart() data << uint32(0); } - if (castFlags & CAST_FLAG_UNKNOWN_31) + if (castFlags & CAST_FLAG_HEAL_PREDICTION) { data << uint32(0); data << uint8(0); // unkByte @@ -4175,7 +4175,25 @@ void Spell::SendChannelStart(uint32 duration) data.append(m_caster->GetPackGUID()); data << uint32(m_spellInfo->Id); data << uint32(duration); - + data << uint8(0); // immunity (castflag & 0x04000000) + /* + if (immunity) + { + data << uint32(); // CastSchoolImmunities + data << uint32(); // CastImmunities + } + */ + data << uint8(0); // healPrediction (castflag & 0x40000000) + /* + if (healPrediction) + { + data.appendPackGUID(channelTarget); // target packguid + data << uint32(); // spellid + data << uint8(0); // unk3 + if (unk3 == 2) + data.append(); // unk packed guid (unused ?) + } + */ m_caster->SendMessageToSet(&data, true); m_timer = duration; |
