mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[9046] Correctly send channeling start/update packets to clients
(cherry-picked from commit 1bc38f7) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d432c34307
commit
f1850c9ebe
2 changed files with 7 additions and 13 deletions
|
|
@ -3463,14 +3463,11 @@ void Spell::SendChannelUpdate(uint32 time)
|
||||||
m_caster->SetUInt32Value(UNIT_CHANNEL_SPELL, 0);
|
m_caster->SetUInt32Value(UNIT_CHANNEL_SPELL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
|
||||||
return;
|
|
||||||
|
|
||||||
WorldPacket data( MSG_CHANNEL_UPDATE, 8+4 );
|
WorldPacket data( MSG_CHANNEL_UPDATE, 8+4 );
|
||||||
data.append(m_caster->GetPackGUID());
|
data.append(m_caster->GetPackGUID());
|
||||||
data << uint32(time);
|
data << uint32(time);
|
||||||
|
|
||||||
((Player*)m_caster)->GetSession()->SendPacket( &data );
|
m_caster->SendMessageToSet(&data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::SendChannelStart(uint32 duration)
|
void Spell::SendChannelStart(uint32 duration)
|
||||||
|
|
@ -3501,15 +3498,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());
|
||||||
WorldPacket data( MSG_CHANNEL_START, (8+4+4) );
|
data << uint32(m_spellInfo->Id);
|
||||||
data.append(m_caster->GetPackGUID());
|
data << uint32(duration);
|
||||||
data << uint32(m_spellInfo->Id);
|
|
||||||
data << uint32(duration);
|
|
||||||
|
|
||||||
((Player*)m_caster)->GetSession()->SendPacket( &data );
|
m_caster->SendMessageToSet(&data, true);
|
||||||
}
|
|
||||||
|
|
||||||
m_timer = duration;
|
m_timer = duration;
|
||||||
if(target)
|
if(target)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9045"
|
#define REVISION_NR "9046"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue