Fix CostSacrifice OriginalHost

This commit is contained in:
tool4EvEr
2021-07-26 20:37:59 +02:00
parent 5de3bab789
commit 7eec98db61
3 changed files with 7 additions and 8 deletions

View File

@@ -484,7 +484,7 @@ public class AiCostDecision extends CostDecisionMakerBase {
return PaymentDecision.card(source); return PaymentDecision.card(source);
} }
if (cost.getType().equals("OriginalHost")) { if (cost.getType().equals("OriginalHost")) {
return PaymentDecision.card(ability.getHostCard()); return PaymentDecision.card(ability.getOriginalHost());
} }
if (cost.getAmount().equals("All")) { if (cost.getAmount().equals("All")) {
// Does the AI want to use Sacrifice All? // Does the AI want to use Sacrifice All?
@@ -600,7 +600,6 @@ public class AiCostDecision extends CostDecisionMakerBase {
// currently if amount is bigger than one, // currently if amount is bigger than one,
// it tries to remove all counters from one source and type at once // it tries to remove all counters from one source and type at once
int toRemove = 0; int toRemove = 0;
final GameEntityCounterTable table = new GameEntityCounterTable(); final GameEntityCounterTable table = new GameEntityCounterTable();

View File

@@ -122,7 +122,7 @@ public class CardLists {
*/ */
public static void sortByCmcDesc(final List<Card> list) { public static void sortByCmcDesc(final List<Card> list) {
Collections.sort(list, CmcComparatorInv); Collections.sort(list, CmcComparatorInv);
} // sortByCmcDesc }
/** /**
* <p> * <p>
@@ -133,7 +133,7 @@ public class CardLists {
*/ */
public static void sortByToughnessAsc(final List<Card> list) { public static void sortByToughnessAsc(final List<Card> list) {
Collections.sort(list, ToughnessComparator); Collections.sort(list, ToughnessComparator);
} // sortByToughnessAsc() }
/** /**
* <p> * <p>
@@ -144,7 +144,7 @@ public class CardLists {
*/ */
public static void sortByToughnessDesc(final List<Card> list) { public static void sortByToughnessDesc(final List<Card> list) {
Collections.sort(list, ToughnessComparatorInv); Collections.sort(list, ToughnessComparatorInv);
} // sortByToughnessDesc() }
/** /**
* <p> * <p>
@@ -155,7 +155,7 @@ public class CardLists {
*/ */
public static void sortByPowerAsc(final List<Card> list) { public static void sortByPowerAsc(final List<Card> list) {
Collections.sort(list, PowerComparator); Collections.sort(list, PowerComparator);
} // sortAttackLowFirst() }
// the higher the attack the better // the higher the attack the better
/** /**
@@ -167,7 +167,7 @@ public class CardLists {
*/ */
public static void sortByPowerDesc(final List<Card> list) { public static void sortByPowerDesc(final List<Card> list) {
Collections.sort(list, Collections.reverseOrder(PowerComparator)); Collections.sort(list, Collections.reverseOrder(PowerComparator));
} // sortAttack() }
/** /**

View File

@@ -4,6 +4,6 @@ Types:Artifact Equipment
K:Equip:2 K:Equip:2
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 1 | AddToughness$ 1 | AddTrigger$ AttackTrigger | Description$ Invoke Duplicity — Equipped creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, you may sacrifice CARDNAME. If you do, create a token that's a copy of this creature." S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 1 | AddToughness$ 1 | AddTrigger$ AttackTrigger | Description$ Invoke Duplicity — Equipped creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, you may sacrifice CARDNAME. If you do, create a token that's a copy of this creature."
SVar:AttackTrigger:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | TriggerZones$ Battlefield | Execute$ TrigCopy | TriggerDescription$ Whenever this creature deals combat damage to a player, you may sacrifice Trickster's Talisman. If you do, create a token that's a copy of this creature. SVar:AttackTrigger:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | TriggerZones$ Battlefield | Execute$ TrigCopy | TriggerDescription$ Whenever this creature deals combat damage to a player, you may sacrifice Trickster's Talisman. If you do, create a token that's a copy of this creature.
SVar:TrigCopy:AB$ CopyPermanent | Cost$ Sac<1/OriginalHost/Trickster's Talisman> | Defined$ Self | NumCopies$ 1 | AILogic$ DuplicatePerms SVar:TrigCopy:AB$ CopyPermanent | Cost$ Sac<1/OriginalHost/Trickster's Talisman> | Defined$ Self | NumCopies$ 1
DeckHas:Ability$Token DeckHas:Ability$Token
Oracle:Invoke Duplicity — Equipped creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, you may sacrifice Trickster's Talisman. If you do, create a token that's a copy of this creature."\nEquip {2} Oracle:Invoke Duplicity — Equipped creature gets +1/+1 and has "Whenever this creature deals combat damage to a player, you may sacrifice Trickster's Talisman. If you do, create a token that's a copy of this creature."\nEquip {2}