mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Added Sword of the Ages
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -7881,6 +7881,7 @@ res/cardsfolder/s/sword_of_feast_and_famine.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/s/sword_of_fire_and_ice.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_fire_and_ice.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/sword_of_kaldra.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_kaldra.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/sword_of_light_and_shadow.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_light_and_shadow.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/s/sword_of_the_ages.txt -text svneol=unset#text/plain
|
||||||
res/cardsfolder/s/sword_of_the_chosen.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_the_chosen.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/sword_of_the_meek.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_the_meek.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/sword_of_the_paruns.txt svneol=native#text/plain
|
res/cardsfolder/s/sword_of_the_paruns.txt svneol=native#text/plain
|
||||||
|
|||||||
13
res/cardsfolder/s/sword_of_the_ages.txt
Normal file
13
res/cardsfolder/s/sword_of_the_ages.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Name:Sword of the Ages
|
||||||
|
ManaCost:6
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
K:CARDNAME enters the battlefield tapped.
|
||||||
|
A:AB$ ChangeZone | Cost$ T Exile<1/CARDNAME> | Origin$ Battlefield | Destination$ Exile | TargetMin$ 0 | TargetMax$ MaxTgts | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | RememberTargets$ True | SubAbility$ DBDamage | CostDesc$ Exile Sword of the Ages and any number of creatures you control: | SpellDescription$ CARDNAME deals X damage to target creature or player, where X is the total power of the creatures exiled this way.
|
||||||
|
SVar:DBDamage:DB$ DealDamage | Tgt$ TgtCP | NumDmg$ Y | SubAbility$ DBCleanup
|
||||||
|
SVar:MaxTgts:Count$Valid Creature.YouCtrl
|
||||||
|
SVar:Y:Count$RememberedSumPower
|
||||||
|
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/sword_of_the_ages.jpg
|
||||||
|
End
|
||||||
@@ -722,6 +722,21 @@ public class CardList implements Iterable<Card> {
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* <p>getTotalCreaturePower.</p>
|
||||||
|
*
|
||||||
|
* @return a int.
|
||||||
|
*/
|
||||||
|
|
||||||
|
public final int getTotalCreaturePower() {
|
||||||
|
int total = 0;
|
||||||
|
for (int i = 0; i < size(); i++) {
|
||||||
|
total += get(i).getCurrentPower();
|
||||||
|
}
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>getHighestConvertedManaCost.</p>
|
* <p>getHighestConvertedManaCost.</p>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -2906,6 +2906,16 @@ public class CardFactoryUtil {
|
|||||||
return highest;
|
return highest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (l[0].contains("RememberedSumPower")) {
|
||||||
|
CardList list = new CardList();
|
||||||
|
for (Object o : c.getRemembered()) {
|
||||||
|
if (o instanceof Card) {
|
||||||
|
list.add(AllZoneUtil.getCardState((Card) o));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list.getTotalCreaturePower();
|
||||||
|
}
|
||||||
|
|
||||||
final String[] sq;
|
final String[] sq;
|
||||||
sq = l[0].split("\\.");
|
sq = l[0].split("\\.");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user