diff options
| author | maximius <none@none> | 2009-09-22 18:19:31 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-09-22 18:19:31 -0700 |
| commit | d79957e5c3c75b6c8bdc1daebed0c8c53223ac73 (patch) | |
| tree | 6b424773b23738fbb79518828101d45e55d97e46 /src | |
| parent | cdfb402122ef87427e72f705c0528825c57ea755 (diff) | |
*Send channeling start/update packet, converted by Stryker, original by pasdVn
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Spell.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 3e533ebbd25..8c751656795 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3858,7 +3858,7 @@ void Spell::SendChannelUpdate(uint32 time) data.append(m_caster->GetPackGUID()); data << uint32(time); - ((Player*)m_caster)->GetSession()->SendPacket( &data ); + m_caster->SendMessageToSet(&data, true); } void Spell::SendChannelStart(uint32 duration) @@ -3889,15 +3889,12 @@ void Spell::SendChannelStart(uint32 duration) } } - if (m_caster->GetTypeId() == TYPEID_PLAYER) - { - WorldPacket data( MSG_CHANNEL_START, (8+4+4) ); - data.append(m_caster->GetPackGUID()); - data << uint32(m_spellInfo->Id); - data << uint32(duration); + WorldPacket data( MSG_CHANNEL_START, (8+4+4) ); + data.append(m_caster->GetPackGUID()); + data << uint32(m_spellInfo->Id); + data << uint32(duration); - ((Player*)m_caster)->GetSession()->SendPacket( &data ); - } + m_caster->SendMessageToSet(&data, true); m_timer = duration; if(target) |
