mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed Novijen, Heart of Progress. Used FilterCreaturePermanent directly.
This commit is contained in:
parent
3c97a0c9cc
commit
2113f6f0fc
1 changed files with 5 additions and 6 deletions
|
@ -44,6 +44,7 @@ import mage.constants.Rarity;
|
|||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
@ -59,10 +60,9 @@ public class NovijenHeartOfProgress extends CardImpl {
|
|||
this.expansionSetCode = "DIS";
|
||||
|
||||
// {tap}: Add {1} to your mana pool.
|
||||
// {G}{U}, {tap}: Put a +1/+1 counter on each creature that entered the battlefield this turn.
|
||||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
this.addAbility(new ColorlessManaAbility());
|
||||
|
||||
// {G}{U}, {tap}: Put a +1/+1 counter on each creature that entered the battlefield this turn.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new NovijenHeartOfProgressEffect(), new ManaCostsImpl<>("{G}{U}"));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
@ -96,8 +96,8 @@ class NovijenHeartOfProgressEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
FilterPermanent filter = new FilterPermanent();
|
||||
filter.add(new CardTypePredicate(CardType.CREATURE));
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game)) {
|
||||
if (permanent.getTurnsOnBattlefield() == 0) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(), game);
|
||||
|
@ -105,5 +105,4 @@ class NovijenHeartOfProgressEffect extends OneShotEffect {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue