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

Arrow Storm gives attack bonus vs. district defenses #14

Closed
Infixo opened this issue Apr 27, 2023 · 2 comments
Closed

Arrow Storm gives attack bonus vs. district defenses #14

Infixo opened this issue Apr 27, 2023 · 2 comments

Comments

@Infixo
Copy link
Owner

Infixo commented Apr 27, 2023

From @mrobaczyk Arrow Storm bonus gives also +7 CS vs district defences. Check LOC_PROMOTION_ARROW_STORM_DESCRIPTION

Seems like there is a buggy subject requirement

<RequirementSetId>ARROW_STORM_REQUIREMENTS</RequirementSetId>
<RequirementId>OPPONENT_IS_NOT_AIR_UNIT_REQUIREMENTS</RequirementId>
<RequirementId>PLAYER_IS_ATTACKER_REQUIREMENTS</RequirementId>

"District" is a separate opponent type, so "not air" includes also district. Solution probably depends on context, either make separate opponent types or exclude district defenses.

@Infixo
Copy link
Owner Author

Infixo commented Apr 27, 2023

Seems like in RequirementArguments we cannot use multiple items at once. This does not work.

-- test if for reqs args we can use commas too - NO!
-- There is a total of 871 reqs; 575 start with 'REQUIRES', 36 ends with 'REQUIREMENTS'
INSERT INTO Requirements (RequirementId, RequirementType) VALUES
('REQUIRES_OPPONENT_IS_LAND_OR_SEA_UNIT', 'REQUIREMENT_OPPONENT_UNIT_DOMAIN_MATCHES');
INSERT INTO RequirementArguments (RequirementId, Name, Value) VALUES
('REQUIRES_OPPONENT_IS_LAND_OR_SEA_UNIT', 'UnitDomain', 'DOMAIN_LAND,DOMAIN_SEA');
INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES
('ARROW_STORM_REQUIREMENTS', 'REQUIRES_OPPONENT_IS_LAND_OR_SEA_UNIT');

@Infixo Infixo changed the title Some promos give attack bonus vs. district defenses and they should not Arrow Storm gives attack bonus vs. district defenses Apr 28, 2023
@Infixo
Copy link
Owner Author

Infixo commented Apr 28, 2023

Fixed in b75d4bc.

@Infixo Infixo closed this as completed Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant