Skip to content

lups crashes when an enemy Singularity Reactor enters a player's LOS #5789

Description

@SteelBlueZK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions