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) {
// 20110715 - 605.4
Ability manaAbiltiy = ability.copy();
if (manaAbiltiy.getSourceObjectZoneChangeCounter() == 0) {
manaAbiltiy.setSourceObjectZoneChangeCounter(getState().getZoneChangeCounter(ability.getSourceId()));
Ability manaAbility = ability.copy();
if (manaAbility.getSourceObjectZoneChangeCounter() == 0) {
manaAbility.setSourceObjectZoneChangeCounter(getState().getZoneChangeCounter(ability.getSourceId()));
}
manaAbiltiy.activate(this, false);
manaAbiltiy.resolve(this);
manaAbility.activate(this, false);
manaAbility.resolve(this);
} else {
TriggeredAbility newAbility = ability.copy();
newAbility.newId();