mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
refactor(Core): SendDirectMessage (#23230)
This commit is contained in:
@@ -1970,7 +1970,7 @@ class spell_pvp_trinket_wotf_shared_cd : public SpellScript
|
||||
{
|
||||
WorldPacket data;
|
||||
player->BuildCooldownPacket(data, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, 7744, GetSpellInfo()->CategoryRecoveryTime); // Will of the forsaken
|
||||
player->GetSession()->SendPacket(&data);
|
||||
player->SendDirectMessage(&data);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1983,11 +1983,11 @@ class spell_pvp_trinket_wotf_shared_cd : public SpellScript
|
||||
data << uint16(GetSpellInfo()->GetCategory()); // spell category
|
||||
data << uint32(0);
|
||||
data << uint32(GetSpellInfo()->CategoryRecoveryTime);
|
||||
player->GetSession()->SendPacket(&data);
|
||||
player->SendDirectMessage(&data);
|
||||
|
||||
WorldPacket data2;
|
||||
player->BuildCooldownPacket(data2, SPELL_COOLDOWN_FLAG_INCLUDE_GCD, SPELL_PVP_TRINKET, GetSpellInfo()->CategoryRecoveryTime); // PvP Trinket spell
|
||||
player->GetSession()->SendPacket(&data2);
|
||||
player->SendDirectMessage(&data2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2650,7 +2650,7 @@ class spell_gen_spirit_healer_res : public SpellScript
|
||||
{
|
||||
WorldPacket data(SMSG_SPIRIT_HEALER_CONFIRM, 8);
|
||||
data << target->GetGUID();
|
||||
originalCaster->GetSession()->SendPacket(&data);
|
||||
originalCaster->SendDirectMessage(&data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user