with lups Staticparticle supporting LUS defined scaling 4f12ded, and recent implementation with Singularity Reactor, there's a LOS bug that crashes the entire lups gadget. When an enemy unit with lups (energysingu) enters LOS for the first time, spGetUnitRulesParam(self.unit, self.sizeScaleParam) returns a nil value. I believe this is because https://github.com/ZeroK-RTS/Zero-K/blob/master/scripts/energysingu.lua#L45 energysingu is updating the unit rules param only for INLOS.
Steps to reproduce bug:
Launch a game.
Set allied team to not spectator.
Spawn an energysingu in an alliance that does not include the allied team
gain LOS of the energysingu
lups crashes
with lups Staticparticle supporting LUS defined scaling 4f12ded, and recent implementation with Singularity Reactor, there's a LOS bug that crashes the entire lups gadget. When an enemy unit with lups (energysingu) enters LOS for the first time, spGetUnitRulesParam(self.unit, self.sizeScaleParam) returns a nil value. I believe this is because https://github.com/ZeroK-RTS/Zero-K/blob/master/scripts/energysingu.lua#L45 energysingu is updating the unit rules param only for INLOS.
Steps to reproduce bug:
Launch a game.
Set allied team to not spectator.
Spawn an energysingu in an alliance that does not include the allied team
gain LOS of the energysingu
lups crashes