mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
Fixed that surge craeted exceptions for rule tooltip text generation.
This commit is contained in:
parent
6100609ae2
commit
1e89fb60d1
4 changed files with 20 additions and 14 deletions
|
|
@ -49,10 +49,10 @@ import mage.filter.predicate.permanent.AnotherPredicate;
|
|||
*/
|
||||
public class RecklessBushwhacker extends CardImpl {
|
||||
|
||||
private final static FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("other creatures you control");
|
||||
private final static FilterControlledCreaturePermanent FILTER = new FilterControlledCreaturePermanent("other creatures you control");
|
||||
|
||||
static {
|
||||
filter.add(new AnotherPredicate());
|
||||
FILTER.add(new AnotherPredicate());
|
||||
}
|
||||
|
||||
public RecklessBushwhacker(UUID ownerId) {
|
||||
|
|
@ -72,7 +72,7 @@ public class RecklessBushwhacker extends CardImpl {
|
|||
|
||||
// When Reckless Bushwhacker enters the battlefield, if its surge cost was paid, other creatures you control get +1/+0 and gain haste until end of turn.
|
||||
EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(1, 0, Duration.EndOfTurn, true), false);
|
||||
ability.addEffect(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn, filter, true));
|
||||
ability.addEffect(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn, FILTER, true));
|
||||
this.addAbility(new ConditionalTriggeredAbility(ability, SurgedCondition.getInstance(),
|
||||
"When {this} enters the battlefield, if its surge cost was paid, other creatures you control get +1/+0 and gain haste until end of turn."));
|
||||
|
||||
|
|
|
|||
|
|
@ -45,10 +45,10 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
*/
|
||||
public class SaddlebackLagac extends CardImpl {
|
||||
|
||||
private final static FilterCreaturePermanent filter = new FilterCreaturePermanent("target creatures");
|
||||
private final static FilterCreaturePermanent FILTER = new FilterCreaturePermanent("target creatures");
|
||||
|
||||
static {
|
||||
filter.add(new AnotherPredicate());
|
||||
FILTER.add(new AnotherPredicate());
|
||||
}
|
||||
|
||||
public SaddlebackLagac(UUID ownerId) {
|
||||
|
|
@ -60,7 +60,7 @@ public class SaddlebackLagac extends CardImpl {
|
|||
|
||||
// When Saddleback Lagac enters the battlefield, support 2.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new SupportEffect(this, 2, true), false);
|
||||
ability.addTarget(new TargetCreaturePermanent(0, 2, filter, false));
|
||||
ability.addTarget(new TargetCreaturePermanent(0, 2, FILTER, false));
|
||||
this.addAbility(ability);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue