mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Some fixes
This commit is contained in:
@@ -33,7 +33,7 @@ public class CharmEffect extends SpellAbilityEffect {
|
||||
List<AbilitySub> toRemove = Lists.newArrayList();
|
||||
for (AbilitySub ch : choices) {
|
||||
// 603.3c If one of the modes would be illegal, that mode can't be chosen.
|
||||
if ((ch.usesTargeting() && ch.isTrigger() && ch.getMinTargets() > 0 &&
|
||||
if ((ch.usesTargeting() && ch.getMinTargets() > 0 &&
|
||||
ch.getTargetRestrictions().getNumCandidates(ch, true) == 0) ||
|
||||
(restriction != null && restriction.contains(ch.getDescription()))) {
|
||||
toRemove.add(ch);
|
||||
|
||||
@@ -147,7 +147,7 @@ public class CountersPutEffect extends SpellAbilityEffect {
|
||||
}
|
||||
} else if (sa.hasParam("Choices")) {
|
||||
int n = AbilityUtils.calculateAmount(card, sa.getParamOrDefault("ChoiceAmount", "1"), sa);
|
||||
String what = (sa.getParamOrDefault("ChoicesDesc", sa.getParam("Choices")));
|
||||
String what = sa.getParamOrDefault("ChoicesDesc", sa.getParam("Choices"));
|
||||
stringBuilder.append(Lang.nounWithNumeralExceptOne(n, what));
|
||||
} else {
|
||||
final List<Card> targetCards = SpellAbilityEffect.getTargetCards(sa);
|
||||
|
||||
@@ -3028,7 +3028,7 @@ public class CardFactoryUtil {
|
||||
// because it doesn't work other wise
|
||||
c.setForetoldCostByEffect(true);
|
||||
}
|
||||
String sb = TextUtil.concatWithSpace(getActivatingPlayer().toString(),"has foretold.");
|
||||
String sb = TextUtil.concatWithSpace(getActivatingPlayer().toString(), "has foretold.");
|
||||
game.getGameLog().add(GameLogEntryType.STACK_RESOLVE, sb);
|
||||
game.fireEvent(new GameEventCardForetold(getActivatingPlayer()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user