Refactor: Fix typo in GameImpl.java (#9105)

This commit is contained in:
DeepCrimson 2022-06-13 05:24:37 -07:00 committed by GitHub
parent 813c52afe6
commit 5d09315387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1963,12 +1963,12 @@ public abstract class GameImpl implements Game {
} }
if (ability instanceof TriggeredManaAbility || ability instanceof DelayedTriggeredManaAbility) { if (ability instanceof TriggeredManaAbility || ability instanceof DelayedTriggeredManaAbility) {
// 20110715 - 605.4 // 20110715 - 605.4
Ability manaAbiltiy = ability.copy(); Ability manaAbility = ability.copy();
if (manaAbiltiy.getSourceObjectZoneChangeCounter() == 0) { if (manaAbility.getSourceObjectZoneChangeCounter() == 0) {
manaAbiltiy.setSourceObjectZoneChangeCounter(getState().getZoneChangeCounter(ability.getSourceId())); manaAbility.setSourceObjectZoneChangeCounter(getState().getZoneChangeCounter(ability.getSourceId()));
} }
manaAbiltiy.activate(this, false); manaAbility.activate(this, false);
manaAbiltiy.resolve(this); manaAbility.resolve(this);
} else { } else {
TriggeredAbility newAbility = ability.copy(); TriggeredAbility newAbility = ability.copy();
newAbility.newId(); newAbility.newId();