Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/5ba93a95de911277908596d805e7fa7f38a18c3a)
This commit is contained in:
hondacrx
2022-02-25 12:58:50 -05:00
parent df1b6bb97d
commit 28175c47b1
3 changed files with 7 additions and 48 deletions
+3 -10
View File
@@ -1070,10 +1070,10 @@ namespace Game.AI
Log.outError(LogFilter.Sql, $"SmartAIMgr: {e} has invoker cast action, but event does not provide any invoker!");
return false;
}
// no break
goto case SmartActions.AddAura;
if (!IsSpellValid(e, e.Action.cast.spell))
return false;
break;
case SmartActions.SelfCast:
case SmartActions.AddAura:
if (!IsSpellValid(e, e.Action.cast.spell))
return false;
break;
@@ -2544,9 +2544,6 @@ namespace Game.AI
[FieldOffset(4)]
public SetRoot setRoot;
[FieldOffset(4)]
public GoFlag goFlag;
[FieldOffset(4)]
public GoState goState;
@@ -3035,10 +3032,6 @@ namespace Game.AI
{
public uint root;
}
public struct GoFlag
{
public uint flag;
}
public struct GoState
{
public uint state;