Robosturm/Commander_Wars

Max's COP and SCOP Increase the Movement of Incorrect Units

FruityGumGuiltyFruit opened this issue · 2 comments

Describe the bug
Read title. This seems unintended, probably happens because his stats are programmed to check max range, and not if the unit is able to attack.

To Reproduce
Steps to reproduce the behavior:

  1. Use Max's COP or SCOP in battle.
  2. See error

Expected behavior
COP/SCOP should not boost these units, or Max's stat text should be changed to make it seem intention. Max in official AW1 also has this issue, but not in AW2 or AW3. I believe the programmers of that game made a similar error.

Desktop (please complete the following information):

OS: [Windows 10 Home]
Version [22h2]
Active Mods (None)
Game Version [Beta v36]

max scop stats

I wonder if simply setting the max range to 0 would break anything

Maybe instead, Robosturm could add an additional check, to see if the unit has at least a weapon in the primary or secondary slot. Something like unit.getWeapon1ID() !== "" && unit.getWeapon2ID() !== "".