mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
AddManaOfAnyColorEffect - removed amount (can only add one)
Refactored cards to use AddManaOfAnyColorEffect Added ManaCylix card.
This commit is contained in:
parent
fac0b0046d
commit
d195e6a749
10 changed files with 123 additions and 97 deletions
|
|
@ -40,7 +40,7 @@ import mage.game.Game;
|
|||
*/
|
||||
public class MetalcraftCost extends CostImpl<MetalcraftCost> {
|
||||
|
||||
private static FilterPermanent filter = new FilterPermanent("artifact");
|
||||
private static final FilterPermanent filter = new FilterPermanent("artifact");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.ARTIFACT);
|
||||
|
|
|
|||
|
|
@ -42,16 +42,12 @@ import mage.players.Player;
|
|||
*/
|
||||
public class AddManaOfAnyColorEffect extends OneShotEffect<AddManaOfAnyColorEffect> {
|
||||
|
||||
int amount;
|
||||
|
||||
public AddManaOfAnyColorEffect(int amount) {
|
||||
public AddManaOfAnyColorEffect() {
|
||||
super(Outcome.PutManaInPool);
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public AddManaOfAnyColorEffect(final AddManaOfAnyColorEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -88,10 +84,7 @@ public class AddManaOfAnyColorEffect extends OneShotEffect<AddManaOfAnyColorEffe
|
|||
|
||||
@Override
|
||||
public String getText(Ability source) {
|
||||
if (amount > 1)
|
||||
return "add " + Integer.toString(amount) + " mana of any color to your mana pool";
|
||||
else
|
||||
return "add one mana of any color to your mana pool";
|
||||
return "add one mana of any color to your mana pool";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue