mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Converted Biorhythm to script.
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -706,7 +706,7 @@ res/cardsfolder/bind.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/binding_agony.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/binding_grasp.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/biomantic_mastery.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/biorhythm.txt svneol=native#text/plain
|
||||
res/cardsfolder/biorhythm.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/birchlore_rangers.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/bird_maiden.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/birds_of_paradise.txt -text svneol=native#text/plain
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
Name:Biorhythm
|
||||
ManaCost:6 G G
|
||||
Types:Sorcery
|
||||
Text:Each player's life total becomes the number of creatures he or she controls.
|
||||
Text:no text
|
||||
A:SP$ SetLife | Cost$ 6 G G | Defined$ You | LifeAmount$ X | SubAbility$ SVar=DBSetLifeOpp | SpellDescription$ Each player's life total becomes the number of creatures he or she controls.
|
||||
SVar:DBSetLifeOpp:DB$SetLife | Defined$ Opponent | LifeAmount$ Y
|
||||
SVar:X:Count$Valid Creature.YouCtrl
|
||||
SVar:Y:Count$Valid Creature.YouDontCtrl
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/biorhythm.jpg
|
||||
SetInfo:ONS|Rare|http://magiccards.info/scans/en/on/247.jpg
|
||||
|
||||
@@ -3749,39 +3749,6 @@ public class CardFactory_Sorceries {
|
||||
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Biorhythm")) {
|
||||
final SpellAbility spell = new Spell(card) {
|
||||
private static final long serialVersionUID = -6042020870286943301L;
|
||||
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
CardList human = AllZoneUtil.getCreaturesInPlay(AllZone.HumanPlayer);
|
||||
CardList comp = AllZoneUtil.getCreaturesInPlay(AllZone.ComputerPlayer);
|
||||
int hLife = AllZone.HumanPlayer.getLife();
|
||||
int cLife = AllZone.ComputerPlayer.getLife();
|
||||
return comp.size() > 0 && human.size() < hLife && ((cLife < 4 && hLife > 4) || (hLife - cLife > 12));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
CardList human = AllZoneUtil.getCreaturesInPlay(AllZone.HumanPlayer);
|
||||
CardList comp = AllZoneUtil.getCreaturesInPlay(AllZone.ComputerPlayer);
|
||||
AllZone.HumanPlayer.setLife(human.size(), card);
|
||||
AllZone.ComputerPlayer.setLife(comp.size(), card);
|
||||
}
|
||||
};//SpellAbility
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getName()).append(" - Each player's life total becomes the lowest life total among all players.");
|
||||
spell.setStackDescription(sb.toString());
|
||||
|
||||
// Do not remove SpellAbilities created by AbilityFactory or Keywords.
|
||||
card.clearFirstSpellAbility();
|
||||
card.addSpellAbility(spell);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Austere Command")) {
|
||||
final ArrayList<String> userChoice = new ArrayList<String>();
|
||||
|
||||
Reference in New Issue
Block a user