mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
convert Flame Rift to SP$DamageAll
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
Name:Flame Rift
|
Name:Flame Rift
|
||||||
ManaCost:1 R
|
ManaCost:1 R
|
||||||
Types:Sorcery
|
Types:Sorcery
|
||||||
Text:Flame Rift deals 4 damage to each player.
|
Text:no text
|
||||||
|
A:SP$DamageAll|Cost$1 R|NumDmg$4|ValidPlayers$Each|ValidDescription$each player.|SpellDescription$CARDNAME deals 4 damage to each player.
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/flame_rift.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/flame_rift.jpg
|
||||||
SetInfo:NMS|Common|http://magiccards.info/scans/en/ne/80.jpg
|
SetInfo:NMS|Common|http://magiccards.info/scans/en/ne/80.jpg
|
||||||
|
|||||||
@@ -4084,27 +4084,6 @@ public class CardFactory_Sorceries {
|
|||||||
card.addSpellAbility(spell);
|
card.addSpellAbility(spell);
|
||||||
}//*************** END ************ END **************************
|
}//*************** END ************ END **************************
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
|
||||||
else if(cardName.equals("Flame Rift")) {
|
|
||||||
final SpellAbility spell = new Spell(card) {
|
|
||||||
private static final long serialVersionUID = -6008296722680155321L;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
AllZone.HumanPlayer.addDamage(4, card);
|
|
||||||
AllZone.ComputerPlayer.addDamage(4, card);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean canPlayAI() {
|
|
||||||
return AllZone.ComputerPlayer.getLife() > 7 && AllZone.HumanPlayer.getLife() < 7;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
card.clearSpellAbility();
|
|
||||||
card.addSpellAbility(spell);
|
|
||||||
}//*************** END ************ END **************************
|
|
||||||
|
|
||||||
|
|
||||||
//*************** START *********** START **************************
|
//*************** START *********** START **************************
|
||||||
else if(cardName.equals("Donate")) {
|
else if(cardName.equals("Donate")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user