Core/Misc: Refactor SendPlaySpellVisual and SendPlaySpellImpact and move them to Unit (from Spell)
This commit is contained in:
1 parent
40b17fd862
commit
d6782fa826
6 files changed
+23
-24
No files matched your search
@@ -4213,17 +4213,6 @@ void Spell::SendResurrectRequest(Player* target)
|
||||
target->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Spell::SendPlaySpellVisual(uint32 SpellID)
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
WorldPacket data(SMSG_PLAY_SPELL_VISUAL, 8 + 4);
|
||||
data << uint64(m_caster->GetGUID());
|
||||
data << uint32(SpellID); // spell visual id?
|
||||
m_caster->ToPlayer()->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
void Spell::TakeCastItem()
|
||||
{
|
||||
if (!m_CastItem || m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
|
||||
Reference in new issue
Block a user