From cb670d83b39d238027af80f69943fe7c6d7fc4bf Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 25 Nov 2017 20:24:35 +0000 Subject: [PATCH] Set PredictedStance when changing stance from Lua. --- OpenRA.Mods.Common/Scripting/Properties/GeneralProperties.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/Scripting/Properties/GeneralProperties.cs b/OpenRA.Mods.Common/Scripting/Properties/GeneralProperties.cs index 78b43bb2df..9dd8dd43de 100644 --- a/OpenRA.Mods.Common/Scripting/Properties/GeneralProperties.cs +++ b/OpenRA.Mods.Common/Scripting/Properties/GeneralProperties.cs @@ -169,6 +169,7 @@ namespace OpenRA.Mods.Common.Scripting if (!Enum.TryParse(value, true, out stance)) throw new LuaException("Unknown stance type '{0}'".F(value)); + autotarget.PredictedStance = stance; autotarget.SetStance(Self, stance); } }