- Added Heroism

This commit is contained in:
swordshine
2013-04-03 00:20:08 +00:00
parent 9679890ede
commit 24145e7da8
4 changed files with 14 additions and 3 deletions

1
.gitattributes vendored
View File

@@ -4867,6 +4867,7 @@ res/cardsfolder/h/hero_of_oxid_ridge.txt svneol=native#text/plain
res/cardsfolder/h/heroes_remembered.txt svneol=native#text/plain
res/cardsfolder/h/heroes_reunion.txt svneol=native#text/plain
res/cardsfolder/h/heroic_defiance.txt -text
res/cardsfolder/h/heroism.txt -text
res/cardsfolder/h/heros_demise.txt svneol=native#text/plain
res/cardsfolder/h/heros_resolve.txt svneol=native#text/plain
res/cardsfolder/h/hesitation.txt -text svneol=unset#text/plain

View File

@@ -0,0 +1,10 @@
Name:Heroism
ManaCost:2 W
Types:Enchantment
A:AB$ RepeatEach | Cost$ Sac<1/Creature.White/White Creature> | RepeatCards$ Creature.attacking+Red | RepeatSubAbility$ DBPump | SpellDescription$ For each attacking red creature, prevent all combat damage that would be dealt by that creature this turn unless its controller pays 2 R.
SVar:DBPump:DB$ Pump | Defined$ Remembered | KW$ HIDDEN Prevent all combat damage that would be dealt by CARDNAME. | UnlessCost$ 2 R | UnlessPayer$ RememberedController
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/heroism.jpg
Oracle:Sacrifice a white creature: For each attacking red creature, prevent all combat damage that would be dealt by that creature this turn unless its controller pays {2}{R}.
SetInfo:FEM Uncommon

View File

@@ -1181,7 +1181,7 @@ public class AbilityUtils {
private static boolean willAIPayForAbility(SpellAbility sa, Player payer, SpellAbility ability, boolean paid, List<Player> payers) {
Card source = sa.getSourceCard();
boolean payForOwnOnly = "OnlyOwn".equals(sa.getParam("UnlessAI"));
boolean payOwner = sa.getParam("UnlessAI").startsWith("Defined");
boolean payOwner = sa.hasParam("UnlessAI") ? sa.getParam("UnlessAI").startsWith("Defined") : false;
boolean payNever = "Never".equals(sa.getParam("UnlessAI"));
boolean isMine = sa.getActivatingPlayer().equals(payer);

View File

@@ -406,12 +406,12 @@ public final class GameActionUtil {
final Player p = ability.getActivatingPlayer();
final Card source = ability.getSourceCard();
Card current = null; // Used in spells with RepeatEach effect to distinguish cards, Cut the Tethers
if (!source.getRemembered().isEmpty() && source.isSpell()) {
if (!source.getRemembered().isEmpty()) {
if (source.getRemembered().get(0) instanceof Card) {
current = (Card) source.getRemembered().get(0);
}
}
if (!source.getImprinted().isEmpty() && source.isSpell()) {
if (!source.getImprinted().isEmpty()) {
current = source.getImprinted().get(0);
}