forked from magefree/mage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package mage.cards.o; | ||
|
||
import mage.MageInt; | ||
import mage.abilities.common.CommittedCrimeTriggeredAbility; | ||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect; | ||
import mage.abilities.keyword.IndestructibleAbility; | ||
import mage.cards.CardImpl; | ||
import mage.cards.CardSetInfo; | ||
import mage.constants.CardType; | ||
import mage.constants.Duration; | ||
import mage.constants.SubType; | ||
import mage.game.Game; | ||
import mage.game.events.GameEvent; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* @author Susucr | ||
*/ | ||
public final class OverzealousMuscle extends CardImpl { | ||
|
||
public OverzealousMuscle(UUID ownerId, CardSetInfo setInfo) { | ||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); | ||
|
||
this.subtype.add(SubType.OGRE); | ||
this.subtype.add(SubType.MERCENARY); | ||
this.power = new MageInt(5); | ||
this.toughness = new MageInt(4); | ||
|
||
// Whenever you commit a crime during your turn, Overzealous Muscle gains indestructible until end of turn. | ||
this.addAbility(new OverzealousMuscleTriggeredAbility()); | ||
} | ||
|
||
private OverzealousMuscle(final OverzealousMuscle card) { | ||
super(card); | ||
} | ||
|
||
@Override | ||
public OverzealousMuscle copy() { | ||
return new OverzealousMuscle(this); | ||
} | ||
} | ||
|
||
class OverzealousMuscleTriggeredAbility extends CommittedCrimeTriggeredAbility { | ||
|
||
OverzealousMuscleTriggeredAbility() { | ||
super(new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn)); | ||
this.setTriggerPhrase("Whenever you commit a crime during your turn, "); | ||
} | ||
|
||
private OverzealousMuscleTriggeredAbility(final OverzealousMuscleTriggeredAbility ability) { | ||
super(ability); | ||
} | ||
|
||
@Override | ||
public OverzealousMuscleTriggeredAbility copy() { | ||
return new OverzealousMuscleTriggeredAbility(this); | ||
} | ||
|
||
@Override | ||
public boolean checkTrigger(GameEvent event, Game game) { | ||
return super.checkTrigger(event, game) | ||
&& game.isActivePlayer(getControllerId()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters