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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user