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:
hondacrx
2022-05-24 13:40:19 -04:00
parent f10f1e4000
commit 871dc5ab5d
3 changed files with 22 additions and 0 deletions
@@ -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)