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 |
abcdefg30
left a comment
There was a problem hiding this comment.
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