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

Weapon shouldn't check warheads in IsValidAgainst #20369

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

dnqbob
Copy link
Contributor

@dnqbob dnqbob commented Oct 14, 2022

Warheads should not block weapon from firing, since we already has InvalidTarget&ValidTarget in weapon. In this case, considering warheads block fire will be very confusing to user.

With this, we can also get more pref when weapon check fire.

Closes #16023

PunkPun
PunkPun previously approved these changes Oct 14, 2022
Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

This PR may expose some incorrectly defined yaml and introduce regressions. I tested out s bunch of RA units and it seems they are defined correctly.

@PunkPun PunkPun changed the title Weapon doesn't check warheads in IsValidAgainst Weapon shouldn't check warheads in IsValidAgainst Oct 14, 2022
@dnqbob
Copy link
Contributor Author

dnqbob commented Oct 14, 2022

then we need some tester on CNC and D2K to see if there is yaml that hardcode warhead target for targetable

@dnqbob
Copy link
Contributor Author

dnqbob commented Oct 20, 2022

Note: PR changed and add can target attacker itself option. It is due to there is a bug for repair vehicle repair itself when its projectile use LaserZap and target damage with speard = 0c20. I don't know if it is by design but we'd better give an option to allow that

OpenRA.Game/GameRules/WeaponInfo.cs Outdated Show resolved Hide resolved
OpenRA.Game/GameRules/WeaponInfo.cs Outdated Show resolved Hide resolved
OpenRA.Game/GameRules/WeaponInfo.cs Outdated Show resolved Hide resolved
abcdefg30
abcdefg30 previously approved these changes Oct 21, 2022
Copy link
Member

@abcdefg30 abcdefg30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm otherwise.

OpenRA.Game/GameRules/WeaponInfo.cs Show resolved Hide resolved
@Mailaender
Copy link
Member

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Units should not be able to shoot at their own feet
4 participants