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
|
RemoveUnitFieldBytes1 = 91, // Bytes, Target
|
||||||
InterruptSpell = 92,
|
InterruptSpell = 92,
|
||||||
SendGoCustomAnim = 93, // Anim Id
|
SendGoCustomAnim = 93, // Anim Id
|
||||||
SetDynamicFlag = 94, // Flags
|
//Unused94 = 94, // do not reuse
|
||||||
AddDynamicFlag = 95, // Flags
|
AddDynamicFlag = 95, // Flags
|
||||||
RemoveDynamicFlag = 96, // Flags
|
RemoveDynamicFlag = 96, // Flags
|
||||||
JumpToPos = 97, // Speedxy, Speedz, Targetx, Targety, Targetz
|
JumpToPos = 97, // Speedxy, Speedz, Targetx, Targety, Targetz
|
||||||
|
|||||||
@@ -783,7 +783,6 @@ namespace Game.AI
|
|||||||
SmartActions.RemoveUnitFieldBytes1 => Marshal.SizeOf(typeof(SmartAction.DelunitByte)),
|
SmartActions.RemoveUnitFieldBytes1 => Marshal.SizeOf(typeof(SmartAction.DelunitByte)),
|
||||||
SmartActions.InterruptSpell => Marshal.SizeOf(typeof(SmartAction.InterruptSpellCasting)),
|
SmartActions.InterruptSpell => Marshal.SizeOf(typeof(SmartAction.InterruptSpellCasting)),
|
||||||
SmartActions.SendGoCustomAnim => Marshal.SizeOf(typeof(SmartAction.SendGoCustomAnim)),
|
SmartActions.SendGoCustomAnim => Marshal.SizeOf(typeof(SmartAction.SendGoCustomAnim)),
|
||||||
SmartActions.SetDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
|
||||||
SmartActions.AddDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
SmartActions.AddDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
||||||
SmartActions.RemoveDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
SmartActions.RemoveDynamicFlag => Marshal.SizeOf(typeof(SmartAction.Flag)),
|
||||||
SmartActions.JumpToPos => Marshal.SizeOf(typeof(SmartAction.Jump)),
|
SmartActions.JumpToPos => Marshal.SizeOf(typeof(SmartAction.Jump)),
|
||||||
@@ -2140,7 +2139,6 @@ namespace Game.AI
|
|||||||
case SmartActions.SetUnitFieldBytes1:
|
case SmartActions.SetUnitFieldBytes1:
|
||||||
case SmartActions.RemoveUnitFieldBytes1:
|
case SmartActions.RemoveUnitFieldBytes1:
|
||||||
case SmartActions.SendGoCustomAnim:
|
case SmartActions.SendGoCustomAnim:
|
||||||
case SmartActions.SetDynamicFlag:
|
|
||||||
case SmartActions.AddDynamicFlag:
|
case SmartActions.AddDynamicFlag:
|
||||||
case SmartActions.RemoveDynamicFlag:
|
case SmartActions.RemoveDynamicFlag:
|
||||||
case SmartActions.JumpToPos:
|
case SmartActions.JumpToPos:
|
||||||
|
|||||||
@@ -1914,13 +1914,6 @@ namespace Game.AI
|
|||||||
target.ToGameObject().SendCustomAnim(e.Action.sendGoCustomAnim.anim);
|
target.ToGameObject().SendCustomAnim(e.Action.sendGoCustomAnim.anim);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SmartActions.SetDynamicFlag:
|
|
||||||
{
|
|
||||||
foreach (var target in targets)
|
|
||||||
if (IsUnit(target))
|
|
||||||
target.ToUnit().SetDynamicFlags((UnitDynFlags)e.Action.flag.flag);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case SmartActions.AddDynamicFlag:
|
case SmartActions.AddDynamicFlag:
|
||||||
{
|
{
|
||||||
foreach (var target in targets)
|
foreach (var target in targets)
|
||||||
|
|||||||
Reference in New Issue
Block a user