CardState: move IntrinsicSpell into LandTraitChanges - #11631
Conversation
There was a problem hiding this comment.
feels like the logic flow gets a bit harder to follow now 🤔
can't we do something a bit more radical and try to avoid all rulesHost stuff:
just have getReplacementList() add them on demand?
a bit like getHiddenStaticAbilities() but the big bonus is we might be able to reuse a single instance of adventureRep/omen... for the whole game 🏎️
(because all of them can just use ReplacedCard instead of Self)
Maybe for later MRs. The Counter Based ones are still excluded by the rulesHost check: forge/forge-game/src/main/java/forge/game/card/Card.java Lines 7063 to 7073 in 1dfbcc8 i also wanted to move these special ones: forge/forge-game/src/main/java/forge/game/card/Card.java Lines 3467 to 3478 in 1dfbcc8 into forge/forge-game/src/main/java/forge/game/card/Card.java Lines 7472 to 7480 in 1dfbcc8 so we don't need to exclude them anymore when checking for forge/forge-game/src/main/java/forge/game/card/Card.java Lines 3443 to 3449 in 1dfbcc8 but then the Tests does fail, because it can't find them anymore: |
Part of #11409
kinda cleanup before Cache are added
i try to make each of them "before changes" - "changes" - "after rules" more uniform
See this comment: #11409 (comment)