mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Added Heroism
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user