Set PredictedStance when changing stance from Lua.

This commit is contained in:
Paul Chote
2017-11-25 20:24:35 +00:00
committed by abcdefg30
parent 1a20dd15cb
commit cb670d83b3

View File

@@ -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);
}
}