Skip to content

Fix destroy replacement filters: enforce IsImmuneToEffect and snapshot destroy group#3126

Open
vuryleo wants to merge 3 commits into
Fluorohydride:masterfrom
vuryleo:fix-destroy-replace
Open

Fix destroy replacement filters: enforce IsImmuneToEffect and snapshot destroy group#3126
vuryleo wants to merge 3 commits into
Fluorohydride:masterfrom
vuryleo:fix-destroy-replace

Conversation

@vuryleo

@vuryleo vuryleo commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

This PR updates the destroy-replacement implementation for 六花聖カンザシ, エヴォルド・フォリス and 魔界特派員デスキャスター etc to correctly handle destruction group snapshotting and release validation during EFFECT_DESTROY_REPLACE.

This PR updates ~30 card scripts that use EFFECT_DESTROY_REPLACE to ensure the replacement target is always legal, with particular focus on enforcing effect immunity checks (not c:IsImmuneToEffect(e)) when selecting the replace candidate.

Testing notes

Confirmed replacement cannot select:

  • cards to be destroyed
  • cards immune to the replacing effect

@vuryleo

vuryleo commented Feb 7, 2026

Copy link
Copy Markdown
Contributor Author

i only manually tested 六花聖カンザシ, エヴォルド・フォリス and 魔界特派員デスキャスター

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant