Set PredictedStance when changing stance from Lua.
This commit is contained in:
@@ -169,6 +169,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
if (!Enum<UnitStance>.TryParse(value, true, out stance))
|
||||
throw new LuaException("Unknown stance type '{0}'".F(value));
|
||||
|
||||
autotarget.PredictedStance = stance;
|
||||
autotarget.SetStance(Self, stance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user