feat(Core/SAI): Implement SMART_ACTION_SET_ANIM_TIER (#24143)
This commit is contained in:
parent
65c98dcd11
commit
f344c0517d
3 changed files with 22 additions and 1 deletions
|
|
@ -3289,6 +3289,13 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_ANIM_TIER:
|
||||
{
|
||||
for (WorldObject* target : targets)
|
||||
if (IsUnit(target))
|
||||
target->ToUnit()->SetAnimTier(AnimTier(e.action.animTier.animTier));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
LOG_ERROR("sql.sql", "SmartScript::ProcessAction: Entry {} SourceType {}, Event {}, Unhandled Action type {}", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue