mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 14:10:18 -04:00
Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement (#25623)
SMART_ACTION_SET_HOVER (parameter1: enable/disable)
* added SMART_ACTION_SET_AI_ANIM_KIT as immediately deprecated
(cherry picked from commit b7ba856b63)
This commit is contained in:
@@ -2470,6 +2470,11 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_HOVER:
|
||||
for (WorldObject* target : targets)
|
||||
if (IsUnit(target))
|
||||
target->ToUnit()->SetHover(e.action.setHover.enable != 0);
|
||||
break;
|
||||
case SMART_ACTION_PLAY_SPELL_VISUAL_KIT:
|
||||
{
|
||||
for (WorldObject* const target : targets)
|
||||
|
||||
Reference in New Issue
Block a user