Core/AreaTriggers: Add PlaySpellVisual
Port From (https://github.com/TrinityCore/TrinityCore/commit/6affa412b18b17623a828332823d0af55d664192)
This commit is contained in:
@@ -77,6 +77,14 @@ namespace Game.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PlaySpellVisual(uint spellVisualId)
|
||||||
|
{
|
||||||
|
AreaTriggerPlaySpellVisual packet = new();
|
||||||
|
packet.AreaTriggerGUID = GetGUID();
|
||||||
|
packet.SpellVisualID = spellVisualId;
|
||||||
|
SendMessageToSet(packet, false);
|
||||||
|
}
|
||||||
|
|
||||||
bool Create(AreaTriggerId areaTriggerCreatePropertiesId, Map map, Position pos, int duration, AreaTriggerSpawn spawnData = null, Unit caster = null, Unit target = null, SpellCastVisual spellVisual = default, SpellInfo spellInfo = null, Spell spell = null, AuraEffect aurEff = null)
|
bool Create(AreaTriggerId areaTriggerCreatePropertiesId, Map map, Position pos, int duration, AreaTriggerSpawn spawnData = null, Unit caster = null, Unit target = null, SpellCastVisual spellVisual = default, SpellInfo spellInfo = null, Spell spell = null, AuraEffect aurEff = null)
|
||||||
{
|
{
|
||||||
_targetGuid = target != null ? target.GetGUID() : ObjectGuid.Empty;
|
_targetGuid = target != null ? target.GetGUID() : ObjectGuid.Empty;
|
||||||
|
|||||||
@@ -76,6 +76,20 @@ namespace Game.Networking.Packets
|
|||||||
public ObjectGuid TriggerGUID;
|
public ObjectGuid TriggerGUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class AreaTriggerPlaySpellVisual : ServerPacket
|
||||||
|
{
|
||||||
|
public ObjectGuid AreaTriggerGUID;
|
||||||
|
public uint SpellVisualID;
|
||||||
|
|
||||||
|
public AreaTriggerPlaySpellVisual() : base(ServerOpcodes.AreaTriggerPlaySpellVisual) { }
|
||||||
|
|
||||||
|
public override void Write()
|
||||||
|
{
|
||||||
|
_worldPacket.WritePackedGuid(AreaTriggerGUID);
|
||||||
|
_worldPacket.WriteUInt32(SpellVisualID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Structs
|
//Structs
|
||||||
class AreaTriggerSplineInfo
|
class AreaTriggerSplineInfo
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user