mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Added Heroism
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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_remembered.txt svneol=native#text/plain
|
||||||
res/cardsfolder/h/heroes_reunion.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/heroic_defiance.txt -text
|
||||||
|
res/cardsfolder/h/heroism.txt -text
|
||||||
res/cardsfolder/h/heros_demise.txt svneol=native#text/plain
|
res/cardsfolder/h/heros_demise.txt svneol=native#text/plain
|
||||||
res/cardsfolder/h/heros_resolve.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
|
res/cardsfolder/h/hesitation.txt -text svneol=unset#text/plain
|
||||||
|
|||||||
10
res/cardsfolder/h/heroism.txt
Normal file
10
res/cardsfolder/h/heroism.txt
Normal 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
|
||||||
@@ -1181,7 +1181,7 @@ public class AbilityUtils {
|
|||||||
private static boolean willAIPayForAbility(SpellAbility sa, Player payer, SpellAbility ability, boolean paid, List<Player> payers) {
|
private static boolean willAIPayForAbility(SpellAbility sa, Player payer, SpellAbility ability, boolean paid, List<Player> payers) {
|
||||||
Card source = sa.getSourceCard();
|
Card source = sa.getSourceCard();
|
||||||
boolean payForOwnOnly = "OnlyOwn".equals(sa.getParam("UnlessAI"));
|
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 payNever = "Never".equals(sa.getParam("UnlessAI"));
|
||||||
boolean isMine = sa.getActivatingPlayer().equals(payer);
|
boolean isMine = sa.getActivatingPlayer().equals(payer);
|
||||||
|
|
||||||
|
|||||||
@@ -406,12 +406,12 @@ public final class GameActionUtil {
|
|||||||
final Player p = ability.getActivatingPlayer();
|
final Player p = ability.getActivatingPlayer();
|
||||||
final Card source = ability.getSourceCard();
|
final Card source = ability.getSourceCard();
|
||||||
Card current = null; // Used in spells with RepeatEach effect to distinguish cards, Cut the Tethers
|
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) {
|
if (source.getRemembered().get(0) instanceof Card) {
|
||||||
current = (Card) source.getRemembered().get(0);
|
current = (Card) source.getRemembered().get(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!source.getImprinted().isEmpty() && source.isSpell()) {
|
if (!source.getImprinted().isEmpty()) {
|
||||||
current = source.getImprinted().get(0);
|
current = source.getImprinted().get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user