Merge pull request #1381 from poixen/fix_add

Renamed addXXX to increaseXXX
This commit is contained in:
poixen 2015-11-21 12:20:49 +01:00
commit c60a5daa2d
11 changed files with 44 additions and 51 deletions

View file

@ -141,15 +141,15 @@ class PlasmCaptureManaEffect extends ManaEffect {
}
if (choiceColor.getColor().isBlack()) {
mana.addBlack();
mana.increaseBlack();
} else if (choiceColor.getColor().isBlue()) {
mana.addBlue();
mana.increaseBlue();
} else if (choiceColor.getColor().isRed()) {
mana.addRed();
mana.increaseRed();
} else if (choiceColor.getColor().isGreen()) {
mana.addGreen();
mana.increaseGreen();
} else if (choiceColor.getColor().isWhite()) {
mana.addWhite();
mana.increaseWhite();
}
}

View file

@ -132,19 +132,19 @@ class SarkhanUnbrokenAbility1 extends OneShotEffect {
switch (manaChoice.getChoice()) {
case "White":
mana.addWhite();
mana.increaseWhite();
break;
case "Blue":
mana.addBlue();
mana.increaseBlue();
break;
case "Black":
mana.addBlack();
mana.increaseBlack();
break;
case "Red":
mana.addRed();
mana.increaseRed();
break;
case "Green":
mana.addGreen();
mana.increaseGreen();
break;
}

View file

@ -107,19 +107,19 @@ class BloomTenderEffect extends ManaEffect {
Mana mana = new Mana();
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(controller.getId())) {
if (mana.getBlack() == 0 && permanent.getColor(game).isBlack()) {
mana.addBlack();
mana.increaseBlack();
}
if (mana.getBlue() == 0 && permanent.getColor(game).isBlue()) {
mana.addBlue();
mana.increaseBlue();
}
if (mana.getRed() == 0 && permanent.getColor(game).isRed()) {
mana.addRed();
mana.increaseRed();
}
if (mana.getGreen() == 0 && permanent.getColor(game).isGreen()) {
mana.addGreen();
mana.increaseGreen();
}
if (mana.getWhite() == 0 && permanent.getColor(game).isWhite()) {
mana.addWhite();
mana.increaseWhite();
}
}
return mana;

View file

@ -142,15 +142,15 @@ class DawnsReflectionManaEffect extends ManaEffect {
}
if (choiceColor.getColor().isBlack()) {
mana.addBlack();
mana.increaseBlack();
} else if (choiceColor.getColor().isBlue()) {
mana.addBlue();
mana.increaseBlue();
} else if (choiceColor.getColor().isRed()) {
mana.addRed();
mana.increaseRed();
} else if (choiceColor.getColor().isGreen()) {
mana.addGreen();
mana.increaseGreen();
} else if (choiceColor.getColor().isWhite()) {
mana.addWhite();
mana.increaseWhite();
}
}

View file

@ -109,15 +109,15 @@ class CoalitionRelicEffect extends OneShotEffect {
player.choose(outcome, choice, game);
}
if (choice.getColor().isBlack()) {
mana.addBlack();
mana.increaseBlack();
} else if (choice.getColor().isBlue()) {
mana.addBlue();
mana.increaseBlue();
} else if (choice.getColor().isRed()) {
mana.addRed();
mana.increaseRed();
} else if (choice.getColor().isGreen()) {
mana.addGreen();
mana.increaseGreen();
} else if (choice.getColor().isWhite()) {
mana.addWhite();
mana.increaseWhite();
}
choice.clearChoice();
}

View file

@ -123,10 +123,10 @@ class OrcishLumberjackManaEffect extends ManaEffect {
}
switch (manaChoice.getChoice()) {
case "Green":
mana.addGreen();
mana.increaseGreen();
break;
case "Red":
mana.addRed();
mana.increaseRed();
break;
}

View file

@ -154,15 +154,15 @@ class MarketFestivalManaEffect extends ManaEffect {
}
if (choiceColor.getColor().isBlack()) {
mana.addBlack();
mana.increaseBlack();
} else if (choiceColor.getColor().isBlue()) {
mana.addBlue();
mana.increaseBlue();
} else if (choiceColor.getColor().isRed()) {
mana.addRed();
mana.increaseRed();
} else if (choiceColor.getColor().isGreen()) {
mana.addGreen();
mana.increaseGreen();
} else if (choiceColor.getColor().isWhite()) {
mana.addWhite();
mana.increaseWhite();
}
}
checkToFirePossibleEvents(mana, game, source);

View file

@ -32,15 +32,11 @@ import java.util.Set;
import java.util.UUID;
import mage.MageInt;
import mage.Mana;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.choices.Choice;
import mage.choices.ChoiceImpl;
@ -48,14 +44,11 @@ import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.ColorPredicate;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetControlledPermanent;
import mage.target.common.TargetCreatureOrPlayer;
/**
* @author BursegSardaukar
@ -132,10 +125,10 @@ class GoblinClearCutterEffect extends OneShotEffect {
}
switch (manaChoice.getChoice()) {
case "Green":
mana.addGreen();
mana.increaseGreen();
break;
case "Red":
mana.addRed();
mana.increaseRed();
break;
}
player.getManaPool().addMana(mana, game, source);

View file

@ -202,22 +202,22 @@ class SasayasEssenceManaEffectEffect extends ManaEffect {
}
switch (choice.getChoice()) {
case "Black":
newMana.addBlack();
newMana.increaseBlack();
break;
case "Blue":
newMana.addBlue();
newMana.increaseBlue();
break;
case "Red":
newMana.addRed();
newMana.increaseRed();
break;
case "Green":
newMana.addGreen();
newMana.increaseGreen();
break;
case "White":
newMana.addWhite();
newMana.increaseWhite();
break;
case "Colorless":
newMana.addColorless();
newMana.increaseColorless();
break;
}
}

View file

@ -114,10 +114,10 @@ class ManaforgeCinderManaEffect extends OneShotEffect {
}
switch (manaChoice.getChoice()) {
case "Black":
mana.addBlack();
mana.increaseBlack();
break;
case "Red":
mana.addRed();
mana.increaseRed();
break;
}
controller.getManaPool().addMana(mana, game, source);

View file

@ -130,10 +130,10 @@ class XenagosManaEffect extends OneShotEffect {
}
switch (manaChoice.getChoice()) {
case "Green":
mana.addGreen();
mana.increaseGreen();
break;
case "Red":
mana.addRed();
mana.increaseRed();
break;
}
player.getManaPool().addMana(mana, game, source);