mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
added Arc-Slogger from Mirrodin (mostly because it kept giving exceptions when I'd accidentally run main in CardFactory.java...)
I swear this used to be in Forge, but maybe not...
This commit is contained in:
@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
|
||||
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
|
||||
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
|
||||
arc_slogger.jpg http://www.wizards.com/global/images/magic/general/arc_slogger.jpg
|
||||
fireball.jpg http://www.wizards.com/global/images/magic/general/fireball.jpg
|
||||
inferno.jpg http://www.wizards.com/global/images/magic/general/inferno.jpg
|
||||
guan_yus_1000_li_march.jpg http://www.wizards.com/global/images/magic/general/guan_yus_1000_li_march.jpg
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
Arc-Slogger
|
||||
3 R R
|
||||
Creature Beast
|
||||
R, Exile the top ten cards of your library: Arc-Slogger deals 2 damage to target creature or player.
|
||||
4/5
|
||||
|
||||
Fireball
|
||||
X R
|
||||
Sorcery
|
||||
|
||||
@@ -17931,6 +17931,46 @@ public class CardFactory_Creatures {
|
||||
ability.setBeforePayMana(target);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
//*************** START *********** START **************************
|
||||
if(cardName.equals("Arc-Slogger")) {
|
||||
/*
|
||||
* R, Exile the top ten cards of your library: Arc-Slogger deals
|
||||
* 2 damage to target creature or player.
|
||||
*/
|
||||
final SpellAbility ability = new Ability(card, "R") {
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, Constant.Player.Computer);
|
||||
int life = AllZone.Human_Life.getLife();
|
||||
if(lib.size() > 10 && life <=2) {
|
||||
return true;
|
||||
}
|
||||
else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void resolve() {
|
||||
int damage = 2;
|
||||
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, card.getController());
|
||||
int max = Math.min(lib.size(), 10);
|
||||
for(int i = 0; i < max; i++) {
|
||||
//remove the top card 10 times
|
||||
AllZone.GameAction.removeFromGame(lib.get(0));
|
||||
}
|
||||
if(getTargetCard() != null) {
|
||||
if(AllZone.GameAction.isCardInPlay(getTargetCard())
|
||||
&& CardFactoryUtil.canTarget(card, getTargetCard())) {
|
||||
AllZone.GameAction.addDamage(getTargetCard(), card, damage);
|
||||
}
|
||||
} else AllZone.GameAction.addDamage(getTargetPlayer(), card, damage);
|
||||
|
||||
}
|
||||
};
|
||||
card.addSpellAbility(ability);
|
||||
ability.setBeforePayMana(CardFactoryUtil.input_targetCreaturePlayer(ability, true, false));
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
// Cards with Cycling abilities
|
||||
// -1 means keyword "Cycling" not found
|
||||
if(shouldCycle(card) != -1) {
|
||||
|
||||
Reference in New Issue
Block a user