Skip to content
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

Auto clean exile zones from outdated cards (on source removed) #13028

Open
JayDi85 opened this issue Oct 24, 2024 · 1 comment
Open

Auto clean exile zones from outdated cards (on source removed) #13028

JayDi85 opened this issue Oct 24, 2024 · 1 comment
Labels
enhancement refactoring Developers topics about code and programming

Comments

@JayDi85
Copy link
Member

JayDi85 commented Oct 24, 2024

Many effects store exiled cards in own zone to make additional actions later in the game (cast from exile, boost, etc). When source card removed from battlefield (zcc changed) then such zone is outdated and will be never used again. User don't need such windows.

There are possible dozen of outdated exile windows in late game, card example: Keen-Eyed Curator
shot_241024_220132

So there are must be some tools to auto-clean it like cleanupOnEndTurn. As example: cleanupOnOutdate(MageObjectReference mor) and check it on cleanup code with end of turn or in other place.

Possible usage in ExileTargetForSourceEffect:
shot_241024_220818

Other potentially places with usage of:

  • .moveCardsToExile(
  • getExile().createZone(
  • and other
@JayDi85 JayDi85 added enhancement refactoring Developers topics about code and programming labels Oct 24, 2024
@jeffwadsworth
Copy link
Contributor

jeffwadsworth commented Oct 25, 2024

#8686

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement refactoring Developers topics about code and programming
Projects
None yet
Development

No branches or pull requests

2 participants