Core/AreaTriggers: Add PlaySpellVisual

Port From (https://github.com/TrinityCore/TrinityCore/commit/6affa412b18b17623a828332823d0af55d664192)
This commit is contained in:
Hondacrx
2024-08-24 23:59:19 -04:00
parent 62829e83c4
commit 6f1b69adbd
2 changed files with 22 additions and 0 deletions
@@ -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)
{
_targetGuid = target != null ? target.GetGUID() : ObjectGuid.Empty;