- Added Jim's Wall of Reverence.

This commit is contained in:
jendave
2011-08-06 03:36:30 +00:00
parent dd81320116
commit aa7ff49cd2
6 changed files with 77 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/gene
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/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 snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
howl_of_the_night_pack.jpg http://www.wizards.com/global/images/magic/general/howl_of_the_night_pack.jpg howl_of_the_night_pack.jpg http://www.wizards.com/global/images/magic/general/howl_of_the_night_pack.jpg
wall_of_reverence.jpg http://www.wizards.com/global/images/magic/general/wall_of_reverence.jpg
beacon_of_creation.jpg http://www.wizards.com/global/images/magic/general/beacon_of_creation.jpg beacon_of_creation.jpg http://www.wizards.com/global/images/magic/general/beacon_of_creation.jpg
echoing_courage.jpg http://www.wizards.com/global/images/magic/general/echoing_courage.jpg echoing_courage.jpg http://www.wizards.com/global/images/magic/general/echoing_courage.jpg
brush_with_death.jpg http://www.wizards.com/global/images/magic/general/brush_with_death.jpg brush_with_death.jpg http://www.wizards.com/global/images/magic/general/brush_with_death.jpg

View File

@@ -1,3 +1,11 @@
Wall of Reverence
3 W
Creature Spirit Wall
At the beginning of your end step, you may gain life equal to the power of target creature you control.
1/6
Defender
Flying
Howl of the Night Pack Howl of the Night Pack
6 G 6 G
Sorcery Sorcery

View File

@@ -241,7 +241,7 @@ public class CardUtil {
tMC = tCL.toString() + " " + mc1 + " " + mc2; tMC = tCL.toString() + " " + mc1 + " " + mc2;
System.out.println("TMC:" + tMC); //System.out.println("TMC:" + tMC);
return tMC; return tMC;
} }

View File

@@ -33,6 +33,8 @@ public class EndOfTurn implements java.io.Serializable
AllZone.GameAction.sacrifice(sacrifice.get(i)); AllZone.GameAction.sacrifice(sacrifice.get(i));
} }
GameActionUtil.endOfTurn_Wall_Of_Reverence();
//GameActionUtil.removeExaltedEffects(); //GameActionUtil.removeExaltedEffects();
GameActionUtil.removeAttackedBlockedThisTurn(); GameActionUtil.removeAttackedBlockedThisTurn();

View File

@@ -2128,6 +2128,8 @@ public class GameActionUtil {
} }
} }
//UPKEEP CARDS:
public static void upkeep_removeDealtDamageToOppThisTurn() { public static void upkeep_removeDealtDamageToOppThisTurn() {
// resets the status of attacked/blocked this turn // resets the status of attacked/blocked this turn
String player = AllZone.Phase.getActivePlayer(); String player = AllZone.Phase.getActivePlayer();
@@ -2583,6 +2585,68 @@ public class GameActionUtil {
} }
}//damageUpkeepCost }//damageUpkeepCost
//END UPKEEP CARDS
//START ENDOFTURN CARDS
public static void endOfTurn_Wall_Of_Reverence()
{
final String player = AllZone.Phase.getActivePlayer();
final PlayerZone playZone = AllZone.getZone(Constant.Zone.Play, player);
CardList list = new CardList(playZone.getCards());
list = list.getName("Wall of Reverence");
Ability ability;
for (int i = 0; i < list.size(); i++)
{
final Card card = list.get(i);
ability = new Ability(list.get(i), "0")
{
public void resolve()
{
CardList creats = new CardList(playZone.getCards());
CardList validTargets = new CardList();
creats = creats.getType("Creature");
for (int i = 0; i < creats.size(); i++) {
if (CardFactoryUtil.canTarget(card, creats.get(i))) {
validTargets.add(creats.get(i));
}
}
if (validTargets.size() == 0)
return;
if (player.equals(Constant.Player.Human))
{
Object o = AllZone.Display.getChoiceOptional("Select creature for Wall of Reverence life gain", validTargets.toArray());
if (o != null) {
Card c = (Card) o;
int power=c.getNetAttack();
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
life.addLife(power);
}
}
else//computer
{
CardListUtil.sortAttack(validTargets);
Card c = creats.get(0);
if (c != null) {
int power = c.getNetAttack();
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
life.addLife(power);
}
}
} // resolve
}; // ability
ability.setStackDescription("Wall of Reverence - "
+ player + " gains life equal to target creature's power.");
AllZone.Stack.add(ability);
}
}
//END ENDOFTURN CARDS
public static void removeAttackedBlockedThisTurn() { public static void removeAttackedBlockedThisTurn() {
// resets the status of attacked/blocked this turn // resets the status of attacked/blocked this turn
String player = AllZone.Phase.getActivePlayer(); String player = AllZone.Phase.getActivePlayer();