mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge pull request #2644 from tool4ever/makeanexample
Fix Make an Example
This commit is contained in:
@@ -994,7 +994,7 @@ public class CountersPutAi extends CountersAi {
|
||||
types.add((CounterType)params.get("CounterType"));
|
||||
} else {
|
||||
for (String s : sa.getParam("CounterType").split(",")) {
|
||||
CounterType.getType(s);
|
||||
types.add(CounterType.getType(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ public class StaticData {
|
||||
return foil ? card.getFoiled() : card;
|
||||
}
|
||||
|
||||
public void attemptToLoadCard(String cardName){
|
||||
public void attemptToLoadCard(String cardName) {
|
||||
this.attemptToLoadCard(cardName, null);
|
||||
}
|
||||
public void attemptToLoadCard(String cardName, String setCode) {
|
||||
|
||||
@@ -183,7 +183,8 @@ public class TwoPilesEffect extends SpellAbilityEffect {
|
||||
card.addRemembered(tempRemembered);
|
||||
}
|
||||
}
|
||||
if (!sa.hasParam("KeepRemembered")) {
|
||||
|
||||
if (!sa.hasParam("KeepRemembered") && !sa.hasParam("RememberChosen")) {
|
||||
// prior to addition of "DefinedPiles" param, TwoPilesEffect cleared remembered objects in the
|
||||
// Chosen/Unchosen subability resolutions, so this preserves that
|
||||
card.clearRemembered();
|
||||
|
||||
@@ -496,7 +496,7 @@ public class CardProperty {
|
||||
} else if (property.startsWith("CanEnchant")) {
|
||||
final String restriction = property.substring(10);
|
||||
if (restriction.equals("EquippedBy")) {
|
||||
if (!source.getEquipping().canBeAttached(card, null)) return false;
|
||||
if (!source.isEquipping() || !source.getEquipping().canBeAttached(card, null)) return false;
|
||||
}
|
||||
if (restriction.equals("Remembered")) {
|
||||
for (final Object rem : source.getRemembered()) {
|
||||
|
||||
@@ -46,7 +46,6 @@ public class StaticAbilityCanAttackDefender {
|
||||
}
|
||||
|
||||
public static boolean applyCanAttackAbility(final StaticAbility stAb, final Card card, final GameEntity target) {
|
||||
|
||||
if (!stAb.matchesValidParam("ValidCard", card)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class TriggerSacrificed extends Trigger {
|
||||
for (IndividualCostPaymentInstance individual : stack) {
|
||||
sa = individual.getPayment().getAbility();
|
||||
|
||||
if (sa == null || sa.getHostCard() == null)
|
||||
if (sa == null || sa.getHostCard() == null)
|
||||
continue;
|
||||
|
||||
if (sa.isSpell() && sa.getHostCard().hasStartOfUnHiddenKeyword(keyword)) {
|
||||
|
||||
@@ -5,7 +5,6 @@ A:AB$ Dig | Cost$ 3 | ValidTgts$ Opponent | DigNum$ 10 | RememberRevealed$ True
|
||||
SVar:DBTwoPiles:DB$ TwoPiles | Defined$ You | DefinedCards$ Remembered | Separator$ Targeted | FaceDown$ True | ConditionCheckSVar$ X | ConditionSVarCompare$ GE10 | ChosenPile$ DBHand | UnchosenPile$ DBExile
|
||||
SVar:DBHand:DB$ ChangeZone | Defined$ Remembered | Origin$ Library | Destination$ Hand | ChangeType$ Card | ChangeNum$ 1 | ChooseFromDefined$ True | Mandatory$ True | Shuffle$ True
|
||||
SVar:DBExile:DB$ ChangeZone | Defined$ Remembered | Origin$ Library | Destination$ Exile
|
||||
# This variable may be incorrect if the controller changes while the ability is on the stack
|
||||
SVar:X:Count$InYourLibrary
|
||||
AI:RemoveDeck:All
|
||||
Oracle:{3}: If your library has ten or more cards in it, target opponent looks at the top ten cards of your library and separates them into two face-down piles. Exile one of those piles. Search the other pile for a card, put it into your hand, then shuffle the rest of that pile into your library.
|
||||
|
||||
Reference in New Issue
Block a user