Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e846d4c3ef04d75839325409df109156d8ccced0)
This commit is contained in:
@@ -907,7 +907,7 @@ namespace Game.AI
|
||||
|
||||
public void SetTimedActionList(SmartScriptHolder e, uint entry, Unit invoker)
|
||||
{
|
||||
GetScript().SetScript9(e, entry, invoker);
|
||||
GetScript().SetTimedActionList(e, entry, invoker);
|
||||
}
|
||||
|
||||
public override void OnGameEvent(bool start, ushort eventId)
|
||||
@@ -1156,7 +1156,7 @@ namespace Game.AI
|
||||
|
||||
public void SetTimedActionList(SmartScriptHolder e, uint entry, Unit invoker)
|
||||
{
|
||||
GetScript().SetScript9(e, entry, invoker);
|
||||
GetScript().SetTimedActionList(e, entry, invoker);
|
||||
}
|
||||
|
||||
public override void OnGameEvent(bool start, ushort eventId)
|
||||
@@ -1217,7 +1217,7 @@ namespace Game.AI
|
||||
|
||||
public void SetTimedActionList(SmartScriptHolder e, uint entry, Unit invoker)
|
||||
{
|
||||
GetScript().SetScript9(e, entry, invoker);
|
||||
GetScript().SetTimedActionList(e, entry, invoker);
|
||||
}
|
||||
|
||||
public SmartScript GetScript() { return _script; }
|
||||
|
||||
Reference in New Issue
Block a user