Skip to content

Card: move Adventure and Omen to getAllPossibleAbilities - #11682

Open
Hanmac wants to merge 4 commits into
masterfrom
adventureOmenMove
Open

Card: move Adventure and Omen to getAllPossibleAbilities#11682
Hanmac wants to merge 4 commits into
masterfrom
adventureOmenMove

Conversation

@Hanmac

@Hanmac Hanmac commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Now Card.updateSpellAbilities is clean from other shenanigans

Comment thread forge-game/src/main/java/forge/game/card/Card.java
Comment thread forge-game/src/main/java/forge/game/card/Card.java
Hanmac added 3 commits August 26, 2026 14:17
If BasicSpell has something other than ManaCost, it's a Static in disguise
@Hanmac
Hanmac force-pushed the adventureOmenMove branch from e1f699c to 425e830 Compare August 26, 2026 12:17
@Hanmac

Hanmac commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@tool4ever is this ready?

@tool4ever tool4ever left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no, I doubt it
this one seems way riskier than your previous #11654

have you even audited any one the many places where this gets used if they're now missing adventures? (ignore desktop, tests would complain)

Image

@Hanmac

Hanmac commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

@tool4ever shouldn't be a problem, there is nothing else looking for "isAdventure"

@tool4ever

Copy link
Copy Markdown
Contributor

look I really don't have the time to do all this testing for you, especially when it feels like I have to proof my concerns first 😩

So here's my last input, after that is fixed someone else should check a few other cases:
image
Adventure spell is now unavailable

@Hanmac

Hanmac commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

@tool4ever i updated getSpellsFromPlayEffect, so it should work again

@tool4ever

Copy link
Copy Markdown
Contributor

yea I can confirm
guess I'll try to test the other 51 call sites during the weekend (if the weather isn't too nice)
also need to check #11700 for merge first probably

@tool4ever

tool4ever commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

There are even more because some call getSpellAbilities or getNonManaAbilities on CardState directly

also this:
grafik

and getBasicSpells

hasSpellAbility seems safe

@Hanmac

Hanmac commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

FirstSpellAbility should be the Intrinsic one anyway, not from a different CardState

@tool4ever tool4ever left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

adventure details text is now broken ingame

@Hanmac

Hanmac commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

adventure details text is now broken ingame

more details:
Desktop or Mobile?

@tool4ever

Copy link
Copy Markdown
Contributor

well both

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.

2 participants