- 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

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);
}