Core/Spells: Implemented SPELL_EFFECT_TELEPORT_WITH_SPELL_VISUAL_KIT_LOADING_SCREEN

Port From (https://github.com/TrinityCore/TrinityCore/commit/49eb3cf8fea8e5eab0c102c2bfb27fad763ba07e)
This commit is contained in:
hondacrx
2021-10-13 10:07:09 -04:00
parent ee45b3c882
commit 46195bd8b7
3 changed files with 86 additions and 1 deletions
@@ -778,6 +778,24 @@ namespace Game.Networking.Packets
public bool MountedVisual;
}
class SpellVisualLoadScreen : ServerPacket
{
public int SpellVisualKitID;
public int Delay;
public SpellVisualLoadScreen(int spellVisualKitId, int delay) : base(ServerOpcodes.SpellVisualLoadScreen, ConnectionType.Instance)
{
SpellVisualKitID = spellVisualKitId;
Delay = delay;
}
public override void Write()
{
_worldPacket.WriteInt32(SpellVisualKitID);
_worldPacket.WriteInt32(Delay);
}
}
public class CancelCast : ClientPacket
{
public CancelCast(WorldPacket packet) : base(packet) { }