feat(Core/SAI): Implement SMART_ACTION_DISMOUNT (206) (#20899)
This commit is contained in:
parent
4c54f7e171
commit
d94dda9d93
4 changed files with 18 additions and 1 deletions
|
|
@ -2605,6 +2605,13 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||
ProcessEventsFor((SMART_EVENT)SMART_EVENT_TIMED_EVENT_TRIGGERED, nullptr, eventId);
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_DISMOUNT:
|
||||
{
|
||||
for (WorldObject* const target : targets)
|
||||
if (IsUnit(target))
|
||||
target->ToUnit()->Dismount();
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_HOVER:
|
||||
{
|
||||
for (WorldObject* target : targets)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue