mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[AFR] Implemented Hoarding Ogre
This commit is contained in:
parent
bf829ea787
commit
841aac30a8
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/h/HoardingOgre.java
Normal file
49
Mage.Sets/src/mage/cards/h/HoardingOgre.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.RollDieWithResultTableEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class HoardingOgre extends CardImpl {
|
||||
|
||||
public HoardingOgre(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
|
||||
|
||||
this.subtype.add(SubType.OGRE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Hoarding Ogre attacks, roll a d20.
|
||||
RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect();
|
||||
this.addAbility(new AttacksTriggeredAbility(effect, false));
|
||||
|
||||
// 1-9 | Create a Treasure token.
|
||||
effect.addTableEntry(1, 9, new CreateTokenEffect(new TreasureToken()));
|
||||
|
||||
// 10-19 | Create two Treasure tokens.
|
||||
effect.addTableEntry(10, 19, new CreateTokenEffect(new TreasureToken(), 2));
|
||||
|
||||
// 20 | Create three Treasure tokens.
|
||||
effect.addTableEntry(20, 20, new CreateTokenEffect(new TreasureToken(), 3));
|
||||
}
|
||||
|
||||
private HoardingOgre(final HoardingOgre card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HoardingOgre copy() {
|
||||
return new HoardingOgre(this);
|
||||
}
|
||||
}
|
|
@ -82,6 +82,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Hama Pashar, Ruin Seeker", 224, Rarity.UNCOMMON, mage.cards.h.HamaPasharRuinSeeker.class));
|
||||
cards.add(new SetCardInfo("Hill Giant Herdgorger", 187, Rarity.COMMON, mage.cards.h.HillGiantHerdgorger.class));
|
||||
cards.add(new SetCardInfo("Hive of the Eye Tyrant", 258, Rarity.RARE, mage.cards.h.HiveOfTheEyeTyrant.class));
|
||||
cards.add(new SetCardInfo("Hoarding Ogre", 146, Rarity.COMMON, mage.cards.h.HoardingOgre.class));
|
||||
cards.add(new SetCardInfo("Hobgoblin Captain", 148, Rarity.COMMON, mage.cards.h.HobgoblinCaptain.class));
|
||||
cards.add(new SetCardInfo("Hulking Bugbear", 149, Rarity.UNCOMMON, mage.cards.h.HulkingBugbear.class));
|
||||
cards.add(new SetCardInfo("Hunter's Mark", 188, Rarity.UNCOMMON, mage.cards.h.HuntersMark.class));
|
||||
|
|
Loading…
Reference in a new issue