mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
updated Moringtide:Luminescent Rain so that controlled noncreatures with a creature type are included and removed the explicit setting of the color
This commit is contained in:
parent
40def1ed66
commit
24a5fc010b
1 changed files with 2 additions and 4 deletions
|
@ -31,7 +31,6 @@ import java.util.UUID;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.repository.CardRepository;
|
||||
|
@ -40,7 +39,7 @@ import mage.choices.ChoiceImpl;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Rarity;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
@ -54,7 +53,6 @@ public class LuminescentRain extends CardImpl {
|
|||
public LuminescentRain(UUID ownerId) {
|
||||
super(ownerId, 129, "Luminescent Rain", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||
this.expansionSetCode = "MOR";
|
||||
this.color.setGreen(true);
|
||||
|
||||
// Choose a creature type. You gain 2 life for each permanent you control of that type.
|
||||
this.getSpellAbility().addEffect(new LuminescentRainEffect());
|
||||
|
@ -97,7 +95,7 @@ class LuminescentRainEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
|
||||
FilterControlledPermanent filter = new FilterControlledPermanent();
|
||||
filter.add(new SubtypePredicate(typeChoice.getChoice()));
|
||||
return new GainLifeEffect(new PermanentsOnBattlefieldCount(filter, 2)).apply(game, source);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue