Core/AreaTriggers: Add Spell* argument to AreaTriggerAI::OnCreate script

Port From (https://github.com/TrinityCore/TrinityCore/commit/a03455acbbbb6b070c9592a9c5c24c8f109dccc8)
This commit is contained in:
hondacrx
2023-06-30 08:36:13 -04:00
parent a9544c4163
commit 0b1d41cc7b
6 changed files with 15 additions and 13 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
using Game.Entities;
using Game.Spells;
namespace Game.AI
{
@@ -18,7 +19,7 @@ namespace Game.AI
public virtual void OnInitialize() { }
// Called when the AreaTrigger has just been created
public virtual void OnCreate() { }
public virtual void OnCreate(Spell creatingSpell) { }
// Called on each AreaTrigger update
public virtual void OnUpdate(uint diff) { }