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 pillbox not uncloaking upon firing #21214
Conversation
0c15ddb
to
a39dcd7
Compare
Fixes the tests I had, including the odd multi-passenger pillbox on wheels. 👌 |
Call other actor's
Testcase: replace the same file(yaml) in OpenRA-RA |
I really don't recommend use this way to fix the uncloak issue because there can be countless dangerous edge cases on traits like |
a2d3533
to
2e04f00
Compare
Fixed the crash |
I think it makes perfect sense for infantry to call the pillbox's NotifyAttack. Not having that created weird exceptions and limitations to the AttackGarrison trait. |
Then I recommend a detailed test on all INotifiedAttack related traits. They can have flaws on function but should never crash. |
This fixes traits like ammo and reveal on fire not working in pillboxes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes lgtm, but untested.
P.S. It feels like AttackGarrisoned shouldn't (re-)use Armaments from the passengers, but that is not for this PR.
Regression from #20675
Fixes #21093