Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/campaign restrictions #6678

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Feb 28, 2025

Description of the proposed changes

Fixes #6675.
Only repair orders are permitted to bypass campaign restrictions, since they do not create a new unit.

Testing done on the proposed changes

  • Start the aeon tutorial campaign mission ("Joust") using the coop dev environment (set location of repo in init_coop.lua and run coop init), and run the following command with a mass extractor selected:
local unit = GetSelectedUnits()[1]
IssueBlueprintCommandToUnit(
    unit, "UNITCOMMAND_Upgrade",
    unit:GetBlueprint().General.UpgradesTo,
    1, true
)

It logs a warning and doesn't upgrade.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@lL1l1 lL1l1 added type: bug area: sim Area that is affected by the Simulation of the Game area: ui Anything to do with the User Interface of the Game labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sim Area that is affected by the Simulation of the Game area: ui Anything to do with the User Interface of the Game type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Mex upgrade by right click ignores tech restrictions in campaign
1 participant