- Vanguard: Added Akroma, Angel of Wrath Avatar and Eight-and-a-Half-Tails Avatar

This commit is contained in:
swordshine
2013-04-03 00:22:36 +00:00
parent 24145e7da8
commit 4481fb72bd
4 changed files with 44 additions and 2 deletions

2
.gitattributes vendored
View File

@@ -176,6 +176,7 @@ res/cardsfolder/a/akoum_refuge.txt svneol=native#text/plain
res/cardsfolder/a/akrasan_squire.txt svneol=native#text/plain res/cardsfolder/a/akrasan_squire.txt svneol=native#text/plain
res/cardsfolder/a/akroma_angel_of_fury.txt svneol=native#text/plain res/cardsfolder/a/akroma_angel_of_fury.txt svneol=native#text/plain
res/cardsfolder/a/akroma_angel_of_wrath.txt svneol=native#text/plain res/cardsfolder/a/akroma_angel_of_wrath.txt svneol=native#text/plain
res/cardsfolder/a/akroma_angel_of_wrath_avatar.txt -text
res/cardsfolder/a/akromas_blessing.txt -text res/cardsfolder/a/akromas_blessing.txt -text
res/cardsfolder/a/akromas_devoted.txt svneol=native#text/plain res/cardsfolder/a/akromas_devoted.txt svneol=native#text/plain
res/cardsfolder/a/akromas_memorial.txt svneol=native#text/plain res/cardsfolder/a/akromas_memorial.txt svneol=native#text/plain
@@ -3040,6 +3041,7 @@ res/cardsfolder/e/ego_erasure.txt -text
res/cardsfolder/e/eiganjo_castle.txt svneol=native#text/plain res/cardsfolder/e/eiganjo_castle.txt svneol=native#text/plain
res/cardsfolder/e/eiganjo_free_riders.txt svneol=native#text/plain res/cardsfolder/e/eiganjo_free_riders.txt svneol=native#text/plain
res/cardsfolder/e/eight_and_a_half_tails.txt -text res/cardsfolder/e/eight_and_a_half_tails.txt -text
res/cardsfolder/e/eight_and_a_half_tails_avatar.txt -text
res/cardsfolder/e/eightfold_maze.txt svneol=native#text/plain res/cardsfolder/e/eightfold_maze.txt svneol=native#text/plain
res/cardsfolder/e/ekundu_griffin.txt svneol=native#text/plain res/cardsfolder/e/ekundu_griffin.txt svneol=native#text/plain
res/cardsfolder/e/el_hajjaj.txt svneol=native#text/plain res/cardsfolder/e/el_hajjaj.txt svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Akroma, Angel of Wrath Avatar
ManaCost:no cost
Types:Vanguard
HandLifeModifier:+1/+7
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | TriggerZones$ Command | ValidCard$ Creature.YouCtrl | Execute$ PumpRandom | TriggerDescription$ Whenever a creature enters the battlefield under your control, it gains two abilities chosen at random from flying, first strike, trample, haste, protection from black, protection from red, and vigilance.
SVar:PumpRandom:AB$ Pump | Cost$ 0 | Defined$ TriggeredCard | Permanent$ True | KW$ Flying & First Strike & Trample & Haste & Protection from black & Protection from red & Vigilance | RandomKeyword$ True | RandomKWNum$ 2
SVar:Picture:http://www.cardforge.org/fpics/vgd-lq/akroma_angel_of_wrath_avatar.jpg
Oracle:Hand +1, life +7\nWhenever a creature enters the battlefield under your control, it gains two abilities chosen at random from flying, first strike, trample, haste, protection from black, protection from red, and vigilance.
SetInfo:VAN Special

View File

@@ -0,0 +1,8 @@
Name:Eight-and-a-Half-Tails Avatar
ManaCost:no cost
Types:Vanguard
HandLifeModifier:+2/-3
A:AB$ Pump | Cost$ 1 | ActivationZone$ Command | ValidTgts$ Permanent.YouCtrl | TgtPrompt$ Select target permanent you control | KW$ Protection from red & Protection from blue & Protection from black & Protection from white & Protection from green | RandomKeyword$ True | NoRepetition$ True | SpellDescription$ Until end of turn, target permanent you control gains protection from a color chosen at random from colors it doesn't have protection from.
SVar:Picture:http://www.cardforge.org/fpics/vgd-lq/eight_and_a_half_tails_avatar.jpg
Oracle:Hand +2, life -3\n{1}: Until end of turn, target permanent you control gains protection from a color chosen at random from colors it doesn't have protection from.
SetInfo:VAN Special

View File

@@ -16,6 +16,7 @@ import forge.card.spellability.Target;
import forge.game.player.Player; import forge.game.player.Player;
import forge.game.zone.ZoneType; import forge.game.zone.ZoneType;
import forge.gui.GuiDialog; import forge.gui.GuiDialog;
import forge.util.Aggregates;
public class PumpEffect extends SpellAbilityEffect { public class PumpEffect extends SpellAbilityEffect {
@@ -179,7 +180,7 @@ public class PumpEffect extends SpellAbilityEffect {
String pumpForget = null; String pumpForget = null;
String pumpImprint = null; String pumpImprint = null;
final List<String> keywords = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & ")) : new ArrayList<String>(); List<String> keywords = sa.hasParam("KW") ? Arrays.asList(sa.getParam("KW").split(" & ")) : new ArrayList<String>();
final int a = AbilityUtils.calculateAmount(sa.getSourceCard(), sa.getParam("NumAtt"), sa); final int a = AbilityUtils.calculateAmount(sa.getSourceCard(), sa.getParam("NumAtt"), sa);
final int d = AbilityUtils.calculateAmount(sa.getSourceCard(), sa.getParam("NumDef"), sa); final int d = AbilityUtils.calculateAmount(sa.getSourceCard(), sa.getParam("NumDef"), sa);
@@ -195,6 +196,28 @@ public class PumpEffect extends SpellAbilityEffect {
} }
} }
if (sa.hasParam("RandomKeyword")) {
final String num = sa.hasParam("RandomKWNum") ? sa.getParam("RandomKWNum") : "1";
final int numkw = AbilityUtils.calculateAmount(sa.getSourceCard(), num, sa);
List<String> choice = new ArrayList<String>();
List<String> total = new ArrayList<String>(keywords);
if (sa.hasParam("NoRepetition")) {
final List<String> tgtCardskws = tgtCards.get(0).getKeyword();
for (int i = 0; i < tgtCardskws.size(); i++) {
if (total.contains(tgtCardskws.get(i))) {
total.remove(tgtCardskws.get(i));
}
}
}
final int min = Math.min(total.size(), numkw);
for (int i = 0; i < min; i++) {
final String random = Aggregates.random(total);
choice.add(random);
total.remove(random);
}
keywords = choice;
}
if (sa.hasParam("Optional")) { if (sa.hasParam("Optional")) {
if (sa.getActivatingPlayer().isHuman()) { if (sa.getActivatingPlayer().isHuman()) {
final StringBuilder targets = new StringBuilder(); final StringBuilder targets = new StringBuilder();