Core/SAI: Remove SMART_ACTION_SET_DYNAMIC_FLAG
Port From (https://github.com/TrinityCore/TrinityCore/commit/842eb3bdd7e18e7f069e8aafd99145a62f82900c)
This commit is contained in:
@@ -348,7 +348,7 @@ namespace Framework.Constants
|
||||
RemoveUnitFieldBytes1 = 91, // Bytes, Target
|
||||
InterruptSpell = 92,
|
||||
SendGoCustomAnim = 93, // Anim Id
|
||||
SetDynamicFlag = 94, // Flags
|
||||
//Unused94 = 94, // do not reuse
|
||||
AddDynamicFlag = 95, // Flags
|
||||
RemoveDynamicFlag = 96, // Flags
|
||||
JumpToPos = 97, // Speedxy, Speedz, Targetx, Targety, Targetz
|
||||
|
||||
@@ -783,7 +783,6 @@ namespace Game.AI
|
||||
SmartActions.RemoveUnitFieldBytes1 => Marshal.SizeOf(typeof(SmartAction.DelunitByte)),
|
||||
SmartActions.InterruptSpell => Marshal.SizeOf(typeof(SmartAction.InterruptSpellCasting)),
|
||||
SmartActions.SendGoCustomAnim => Marshal.SizeOf(typeof(SmartAction.SendGoCustomAnim)),
|
||||
SmartActions.SetDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
||||
SmartActions.AddDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
||||
SmartActions.RemoveDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
||||
SmartActions.JumpToPos => Marshal.SizeOf(typeof(SmartAction.Jump)),
|
||||
@@ -2140,7 +2139,6 @@ namespace Game.AI
|
||||
case SmartActions.SetUnitFieldBytes1:
|
||||
case SmartActions.RemoveUnitFieldBytes1:
|
||||
case SmartActions.SendGoCustomAnim:
|
||||
case SmartActions.SetDynamicFlag:
|
||||
case SmartActions.AddDynamicFlag:
|
||||
case SmartActions.RemoveDynamicFlag:
|
||||
case SmartActions.JumpToPos:
|
||||
|
||||
@@ -1914,13 +1914,6 @@ namespace Game.AI
|
||||
target.ToGameObject().SendCustomAnim(e.Action.sendGoCustomAnim.anim);
|
||||
break;
|
||||
}
|
||||
case SmartActions.SetDynamicFlag:
|
||||
{
|
||||
foreach (var target in targets)
|
||||
if (IsUnit(target))
|
||||
target.ToUnit().SetDynamicFlags((UnitDynFlags)e.Action.flag.flag);
|
||||
break;
|
||||
}
|
||||
case SmartActions.AddDynamicFlag:
|
||||
{
|
||||
foreach (var target in targets)
|
||||
|
||||
Reference in New Issue
Block a user