mage icon indicating copy to clipboard operation
mage copied to clipboard

Fix saga first chapter zcc

Open ssk97 opened this issue 6 months ago • 2 comments

This is a cleaned version of #11619.

This makes it so that if a permanent is entering as the ability's zcc is being updated, then the zcc is the permanent's instead of the spell's. An ability that happens "as ~ enters" will not have a changed zcc, as it isn't put into the entering list until after those abilities have been processed. The new SigardasSplendorTest verifies this behavior.

This also centralizes the updating of ability zcc, though addDelayedTriggeredAbility is unchanged due to to d8959f1588f0556ba4f4604d5c0dbf98350333b8. The only logic change is in the getPermanentEntering check.

Fixes #11728

ssk97 avatar Jun 01 '25 03:06 ssk97

@JayDi85 have you gotten the time to review this? It's been on alpha for 2 weeks, and no bug was noticed with it (commander, sealed and cube games occured)

Susucre avatar Jun 14 '25 12:06 Susucre

Yes, looks like it related to wrong usage of Ability::getSourceObjectZoneChangeCounter() and exile zone id (see details in #13737) -- I need to check it.

JayDi85 avatar Jun 14 '25 12:06 JayDi85

@JayDi85 Is there a problem if I merge this soon? This fixes several problems and, if later we find a better solution of some sort, is easy to remove.

ssk97 avatar Jul 04 '25 20:07 ssk97

Yes, looks like it related to wrong usage of Ability::getSourceObjectZoneChangeCounter() and exile zone id (see details in #13737) -- I need to check it.

This doesn't really make sense to me. These abilities should not be using the ZCC of the card's current zone, it should be using the ZCC of the ability when the source instantiated it. The incorrect usage is when it's being used in static effects.

ssk97 avatar Jul 07 '25 05:07 ssk97

Continue in #13836

JayDi85 avatar Jul 07 '25 06:07 JayDi85