mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
* Swaggering Corsair - Fixed that enters the battlefield ability was wrongly implemented as a triggered ability (fixes #4457).
This commit is contained in:
parent
329116669a
commit
f4b7a934be
1 changed files with 6 additions and 8 deletions
|
|
@ -30,10 +30,8 @@ package mage.cards.s;
|
|||
import java.util.UUID;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.RaidCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
|
@ -56,11 +54,11 @@ public class SwaggeringCorsair extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// <i>Raid</i> - Swaggering Corsair enters the battlefield with a +1/+1 counter on it if you attacked with a creature this turn.
|
||||
Ability ability = new ConditionalTriggeredAbility(
|
||||
new EntersBattlefieldTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false),
|
||||
this.addAbility(new EntersBattlefieldAbility(
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)),
|
||||
RaidCondition.instance,
|
||||
"<i>Raid</i> — Swaggering Corsair enters the battlefield with a +1/+1 counter on it if you attacked with a creature this turn.");
|
||||
this.addAbility(ability, new PlayerAttackedWatcher());
|
||||
"<i>Raid</i> — {this} enters the battlefield with a +1/+1 counter on it if you attacked with a creature this turn.", ""
|
||||
), new PlayerAttackedWatcher());
|
||||
}
|
||||
|
||||
public SwaggeringCorsair(final SwaggeringCorsair card) {
|
||||
|
|
@ -71,4 +69,4 @@ public class SwaggeringCorsair extends CardImpl {
|
|||
public SwaggeringCorsair copy() {
|
||||
return new SwaggeringCorsair(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue