Skip to content

Support engine tracking card mover vs. controller#6420

Draft
tool4ever wants to merge 9 commits intoCard-Forge:masterfrom
tool4ever:putty
Draft

Support engine tracking card mover vs. controller#6420
tool4ever wants to merge 9 commits intoCard-Forge:masterfrom
tool4ever:putty

Conversation

@tool4ever
Copy link
Contributor

Adds support that will be needed for #5137

@tool4ever tool4ever added Game Mechanics Rules compliance Bringing the engine or cards closer to CR labels Oct 23, 2024
@tool4ever tool4ever marked this pull request as draft October 23, 2024 17:06

// in some cases it's always affected that puts them in play (initially)
String defPutter;
if (cause == null || (!cause.hasParam("Putter") && (c.isToken() ||
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if I like it there

I probably would move the Putter logic into AbilityKey.addCardZoneTableParams

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmn, the problem is the Putter can be different players during the same effect

and most effects currently don't need to modify moveParams between cards and reuse them instead

so I'd have to refactor those further, especially when they pass down to helpers in SpellAbilityEffect like with discard?

Copy link
Contributor

Choose a reason for hiding this comment

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

imo it would be more clean if the stuff is done in the specific SpellAbilityEffect classes (or a helper function)

Copy link
Contributor

Choose a reason for hiding this comment

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

@tool4ever can you move the Putter Logic into Effects instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried but like I said above it got messy fast ;/
Not sure yet if I can find a cleaner approach

Copy link
Contributor

Choose a reason for hiding this comment

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

i still think it would be cleaner in SpellAbilityEffect like classes

@github-actions
Copy link

This PR has not been updated in a while nad has been marked on stale. Stale PRs will be auto closed

@Hanmac Hanmac added keep no stale and removed no-pr-activity labels Jan 20, 2025
tool4ever and others added 7 commits April 14, 2025 17:12
# Conflicts:
#	forge-game/src/main/java/forge/game/replacement/ReplaceMoved.java
#	forge-gui/res/cardsfolder/a/assassins_trophy.txt
#	forge-gui/res/cardsfolder/a/avatar_of_growth.txt
#	forge-gui/res/cardsfolder/c/chaos_warp.txt
#	forge-gui/res/cardsfolder/c/cleansing_wildfire.txt
#	forge-gui/res/cardsfolder/c/crypt_champion.txt
#	forge-gui/res/cardsfolder/d/demolition_field.txt
#	forge-gui/res/cardsfolder/d/dire_strain_rampage.txt
#	forge-gui/res/cardsfolder/e/endless_whispers.txt
#	forge-gui/res/cardsfolder/e/exhume.txt
#	forge-gui/res/cardsfolder/f/fall_of_the_thran.txt
#	forge-gui/res/cardsfolder/f/field_of_ruin.txt
#	forge-gui/res/cardsfolder/g/geomancers_gambit.txt
#	forge-gui/res/cardsfolder/g/ghost_quarter.txt
#	forge-gui/res/cardsfolder/m/magister_of_worth.txt
#	forge-gui/res/cardsfolder/o/oath_of_lieges.txt
#	forge-gui/res/cardsfolder/o/old_growth_dryads.txt
#	forge-gui/res/cardsfolder/o/orochi_soul_reaver.txt
#	forge-gui/res/cardsfolder/p/path_to_exile.txt
#	forge-gui/res/cardsfolder/p/polymorph.txt
#	forge-gui/res/cardsfolder/p/proteus_staff.txt
#	forge-gui/res/cardsfolder/r/reweave.txt
#	forge-gui/res/cardsfolder/s/shape_anew.txt
#	forge-gui/res/cardsfolder/s/sundering_eruption_volcanic_fissure.txt
#	forge-gui/res/cardsfolder/t/tempt_with_discovery.txt
#	forge-gui/res/cardsfolder/t/transmogrify.txt
#	forge-gui/res/cardsfolder/v/volatile_fault.txt
#	forge-gui/res/cardsfolder/w/white_orchid_phantom.txt
#	forge-gui/res/cardsfolder/w/winds_of_abandon.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Game Mechanics keep no stale Rules compliance Bringing the engine or cards closer to CR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants