mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Rattleblaze Scarecrow - Fixed that the haze ability was gained from controlled black instead of red creature.
This commit is contained in:
parent
3e27d07d0d
commit
fca3582420
1 changed files with 6 additions and 5 deletions
|
@ -50,9 +50,10 @@ import mage.filter.predicate.mageobject.ColorPredicate;
|
|||
* @author jeffwadsworth
|
||||
*/
|
||||
public class RattleblazeScarecrow extends CardImpl {
|
||||
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a black creature");
|
||||
private static final FilterControlledCreaturePermanent filter2 = new FilterControlledCreaturePermanent("a red creature");
|
||||
|
||||
static {
|
||||
filter.add(new ColorPredicate(ObjectColor.BLACK));
|
||||
filter2.add(new ColorPredicate(ObjectColor.RED));
|
||||
|
@ -60,7 +61,7 @@ public class RattleblazeScarecrow extends CardImpl {
|
|||
|
||||
private static final String rule = "{this} has persist as long as you control a black creature";
|
||||
private static final String rule2 = "{this} has haste as long as you control a red creature";
|
||||
|
||||
|
||||
public RattleblazeScarecrow(UUID ownerId) {
|
||||
super(ownerId, 259, "Rattleblaze Scarecrow", Rarity.COMMON, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{6}");
|
||||
this.expansionSetCode = "SHM";
|
||||
|
@ -71,11 +72,11 @@ public class RattleblazeScarecrow extends CardImpl {
|
|||
// Rattleblaze Scarecrow has persist as long as you control a black creature.
|
||||
ContinuousEffect effect = new GainAbilitySourceEffect(new PersistAbility(), Duration.WhileOnBattlefield);
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect, new PermanentsOnTheBattlefieldCondition(filter), rule)));
|
||||
|
||||
|
||||
// Rattleblaze Scarecrow has haste as long as you control a red creature.
|
||||
ContinuousEffect effect2 = new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield);
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect2, new PermanentsOnTheBattlefieldCondition(filter), rule2)));
|
||||
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinuousEffect(effect2, new PermanentsOnTheBattlefieldCondition(filter2), rule2)));
|
||||
|
||||
}
|
||||
|
||||
public RattleblazeScarecrow(final RattleblazeScarecrow card) {
|
||||
|
|
Loading…
Reference in a new issue