Fix Zenith Chronicler bug.

Sneaky bug, it would trigger on every spell cast after one multicolored spell until the next multicolored spell was cast. This change makes it only trigger when the spell that was cast was multicolored.
This commit is contained in:
Grath 2024-09-20 23:03:23 -04:00
parent bf2c4cac15
commit 360cde3c82

View file

@ -76,7 +76,7 @@ class ZenithChroniclerTriggeredAbility extends TriggeredAbilityImpl {
Player controller = game.getPlayer(getControllerId());
Spell spell = game.getSpell(event.getTargetId());
SpellsCastWatcher watcher = game.getState().getWatcher(SpellsCastWatcher.class);
if (controller != null && spell != null && watcher != null) {
if (controller != null && spell != null && watcher != null && spell.getColor(game).isMulticolored()) {
int multicoloredSpell = 0;
for (Spell spellCastThisTurn : watcher.getSpellsCastThisTurn(spell.getControllerId())) {
if (spellCastThisTurn.getColor(game).isMulticolored() && ++multicoloredSpell > 1) {