mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implement Sawtooth Ogre from WTH (#6725)
This commit is contained in:
parent
d1cbfc51e1
commit
fd3ee45a1e
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/s/SawtoothOgre.java
Normal file
43
Mage.Sets/src/mage/cards/s/SawtoothOgre.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BlocksOrBecomesBlockedTriggeredAbility;
|
||||
import mage.abilities.common.delayed.AtTheEndOfCombatDelayedTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author arcox
|
||||
*/
|
||||
public final class SawtoothOgre extends CardImpl {
|
||||
|
||||
public SawtoothOgre(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}{R}");
|
||||
this.subtype.add(SubType.OGRE);
|
||||
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Sawtooth Ogre blocks or becomes blocked by a creature, Sawtooth Ogre deals 1 damage to that creature at end of combat.
|
||||
Effect effect = new CreateDelayedTriggeredAbilityEffect(new AtTheEndOfCombatDelayedTriggeredAbility(
|
||||
new DamageTargetEffect(1)), true)
|
||||
.setText("{this} deals 1 damage to that creature at end of combat");
|
||||
this.addAbility(new BlocksOrBecomesBlockedTriggeredAbility(effect, false));
|
||||
}
|
||||
|
||||
public SawtoothOgre(final SawtoothOgre card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SawtoothOgre copy() {
|
||||
return new SawtoothOgre(this);
|
||||
}
|
||||
}
|
|
@ -152,6 +152,7 @@ public final class Weatherlight extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Roc Hatchling", 113, Rarity.UNCOMMON, mage.cards.r.RocHatchling.class));
|
||||
cards.add(new SetCardInfo("Rogue Elephant", 139, Rarity.COMMON, mage.cards.r.RogueElephant.class));
|
||||
cards.add(new SetCardInfo("Sage Owl", 52, Rarity.COMMON, mage.cards.s.SageOwl.class));
|
||||
cards.add(new SetCardInfo("Sawtooth Ogre", 114, Rarity.COMMON, mage.cards.s.SawtoothOgre.class));
|
||||
cards.add(new SetCardInfo("Scorched Ruins", 166, Rarity.RARE, mage.cards.s.ScorchedRuins.class));
|
||||
cards.add(new SetCardInfo("Serenity", 24, Rarity.RARE, mage.cards.s.Serenity.class));
|
||||
cards.add(new SetCardInfo("Serra's Blessing", 25, Rarity.UNCOMMON, mage.cards.s.SerrasBlessing.class));
|
||||
|
|
Loading…
Reference in a new issue