Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/dde5a3e32645060fbcc4856770dfc6a0c43a3947)
This commit is contained in:
@@ -2429,6 +2429,13 @@ namespace Game.AI
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SmartActions.SetHover:
|
||||
{
|
||||
foreach (WorldObject target in targets)
|
||||
if (IsUnit(target))
|
||||
target.ToUnit().SetHover(e.Action.setHover.enable != 0);
|
||||
break;
|
||||
}
|
||||
case SmartActions.PlaySpellVisualKit:
|
||||
{
|
||||
foreach (var target in targets)
|
||||
|
||||
Reference in New Issue
Block a user