mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
- Fixed #6314
This commit is contained in:
parent
448d618a8a
commit
97767a0be1
1 changed files with 13 additions and 10 deletions
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -23,10 +21,12 @@ import mage.game.permanent.Permanent;
|
|||
* @author Loki
|
||||
*/
|
||||
public final class MyrGalvanizer extends CardImpl {
|
||||
|
||||
static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Myr creatures");
|
||||
|
||||
static {
|
||||
filter.add(SubType.MYR.getPredicate());
|
||||
filter.add(TargetController.YOU.getControllerPredicate());
|
||||
}
|
||||
|
||||
public MyrGalvanizer(UUID ownerId, CardSetInfo setInfo) {
|
||||
|
@ -35,10 +35,12 @@ public final class MyrGalvanizer extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
// Other Myr creatures you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
|
||||
|
||||
// {1}, {T}: Untap each other Myr you control.
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new MyrGalvanizerEffect(), new TapSourceCost());
|
||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
|
||||
new MyrGalvanizerEffect(), new TapSourceCost());
|
||||
ability.addCost(new GenericManaCost(1));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
@ -66,7 +68,8 @@ class MyrGalvanizerEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(MyrGalvanizer.filter, source.getControllerId(), game)) {
|
||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(
|
||||
MyrGalvanizer.filter, source.getControllerId(), game)) {
|
||||
if (!permanent.getId().equals(source.getSourceId())) {
|
||||
permanent.untap(game);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue