Core/SmartScript: Added ACTION_GO_SET_GO_STATE

This commit is contained in:
hondacrx
2018-03-18 12:01:59 -04:00
parent 4d3d2290eb
commit aaae2edf02
3 changed files with 22 additions and 1 deletions
@@ -2027,6 +2027,18 @@ namespace Game.AI
obj.ToGameObject().SetLootState((LootState)e.Action.setGoLootState.state);
break;
}
case SmartActions.GoSetGoState:
{
List<WorldObject> targets = GetTargets(e, unit);
if (targets.Empty())
break;
foreach (var obj in targets)
if (IsGameObject(obj))
obj.ToGameObject().SetGoState((GameObjectState)e.Action.goState.state);
break;
}
case SmartActions.SendTargetToTarget:
{
List<WorldObject> targets = GetTargets(e, unit);