mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
fixed Manaweft Sliver giving abilities to other player's creatures
This commit is contained in:
parent
3746fddf54
commit
15764549d4
1 changed files with 9 additions and 8 deletions
|
@ -29,9 +29,8 @@ package mage.cards.m;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -39,7 +38,7 @@ import mage.constants.CardType;
|
|||
import mage.constants.SubType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -47,6 +46,8 @@ import mage.filter.StaticFilters;
|
|||
*/
|
||||
public class ManaweftSliver extends CardImpl {
|
||||
|
||||
public static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.SLIVER, "Sliver creatures");
|
||||
|
||||
public ManaweftSliver(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
this.subtype.add(SubType.SLIVER);
|
||||
|
@ -55,11 +56,11 @@ public class ManaweftSliver extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// Sliver creatures you control have "{T}: Add one mana of any color to your mana pool."
|
||||
Ability ability = new AnyColorManaAbility();
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
|
||||
new GainAbilityAllEffect(ability,
|
||||
Duration.WhileOnBattlefield, StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS,
|
||||
"Sliver creatures you control have \"{T}: Add one mana of any color to your mana pool.\"")));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(
|
||||
new AnyColorManaAbility(),
|
||||
Duration.WhileOnBattlefield,
|
||||
filter
|
||||
)));
|
||||
}
|
||||
|
||||
public ManaweftSliver(final ManaweftSliver card) {
|
||||
|
|
Loading…
Reference in a new issue