mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
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:
parent
bf2c4cac15
commit
360cde3c82
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class ZenithChroniclerTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
Player controller = game.getPlayer(getControllerId());
|
Player controller = game.getPlayer(getControllerId());
|
||||||
Spell spell = game.getSpell(event.getTargetId());
|
Spell spell = game.getSpell(event.getTargetId());
|
||||||
SpellsCastWatcher watcher = game.getState().getWatcher(SpellsCastWatcher.class);
|
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;
|
int multicoloredSpell = 0;
|
||||||
for (Spell spellCastThisTurn : watcher.getSpellsCastThisTurn(spell.getControllerId())) {
|
for (Spell spellCastThisTurn : watcher.getSpellsCastThisTurn(spell.getControllerId())) {
|
||||||
if (spellCastThisTurn.getColor(game).isMulticolored() && ++multicoloredSpell > 1) {
|
if (spellCastThisTurn.getColor(game).isMulticolored() && ++multicoloredSpell > 1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue