* Fixed available mana generation of Jungle Patrol, Kydele Chosen of Kruphix, Kykar Winds Fury and Mana Cache (#6698).

This commit is contained in:
LevelX2 2020-07-28 14:41:49 +02:00
parent 0458778c44
commit af5a0bb405
4 changed files with 9 additions and 5 deletions

View file

@ -9,6 +9,7 @@ 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.PermanentsOnBattlefieldCount;
import mage.abilities.effects.mana.BasicManaEffect;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
@ -49,7 +50,7 @@ public final class JunglePatrol extends CardImpl {
// Sacrifice a token named Wood: Add {R}.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD,
new BasicManaEffect(Mana.RedMana(1)),
new BasicManaEffect(Mana.RedMana(1), new PermanentsOnBattlefieldCount(filter)),
new SacrificeTargetCost(new TargetControlledPermanent(1, 1, filter, true))));
}

View file

@ -31,8 +31,8 @@ public final class KydeleChosenOfKruphix extends CardImpl {
// {T}: Add {C} for each card you've drawn this turn.
DynamicManaAbility ability = new DynamicManaAbility(
Mana.ColorlessMana(1), CardsDrawnThisTurnDynamicValue.instance, new TapSourceCost()
);
Mana.ColorlessMana(1), CardsDrawnThisTurnDynamicValue.instance,
new TapSourceCost(), null, false, CardsDrawnThisTurnDynamicValue.instance);
this.addAbility(ability, new CardsDrawnThisTurnWatcher());
// Partner

View file

@ -20,6 +20,7 @@ import mage.game.permanent.token.SpiritWhiteToken;
import mage.target.common.TargetControlledPermanent;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
/**
* @author TheElk801
@ -49,7 +50,7 @@ public final class KykarWindsFury extends CardImpl {
// Sacrifice a Spirit: Add {R}.
this.addAbility(new SimpleManaAbility(
Zone.BATTLEFIELD, new BasicManaEffect(Mana.RedMana(1)),
Zone.BATTLEFIELD, new BasicManaEffect(Mana.RedMana(1), new PermanentsOnBattlefieldCount(filter)),
new SacrificeTargetCost(new TargetControlledPermanent(filter))
));
}

View file

@ -26,6 +26,7 @@ import mage.game.permanent.Permanent;
import mage.players.Player;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.CountersSourceCount;
/**
* @author L_J
@ -87,7 +88,8 @@ class ManaCacheEffect extends OneShotEffect {
class ManaCacheManaAbility extends ActivatedManaAbilityImpl {
public ManaCacheManaAbility() {
super(Zone.BATTLEFIELD, new BasicManaEffect(Mana.ColorlessMana(1)), new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1)));
super(Zone.BATTLEFIELD, new BasicManaEffect(Mana.ColorlessMana(1), new CountersSourceCount(CounterType.CHARGE)),
new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(1)));
this.netMana.add(new Mana(0, 0, 0, 0, 0, 0, 0, 1));
}