[0.77] Underdog design trait is always active

This trait reads "+3 Attack vs higher level units". However, regardless of level and enemy level, this bonus is always given.

           <GameModifier>
                <ModType>Unit</ModType>
                <Attribute>AdjustUnitStat</Attribute>
                <StrVal>UnitStat_Attack_Boost</StrVal>
                <StrVal2>UnitStat_Level</StrVal2>
                <Value>3</Value>
                <vsHigher>1</vsHigher>
            </GameModifier>

vsHigher seems broken.

1,339 views 3 replies
Reply #1 Top

Actually, vsHigher isn't even visible in the hex editor. Is it even implemented in the code?

.WhenUnderPercentHitPoints...xActions....vsUnitType..vsOtherAllegiance...vsLower.vsDamaged...
End of quote

Reply #2 Top

This tag is crucial for modding to reduce overhead from unitstat-dependant abilities. Please do not scrap this trait instead of fixing the code.

Reply #3 Top

It is also used in the Cowardly trait for flaws when designing sovereigns. Obviously it does not work there either.