Merge remote-tracking branch 'upstream/master' into collector-number-in-card-list-and-card-db-refactoring

This commit is contained in:
leriomaggio
2021-08-14 08:27:09 +01:00
11 changed files with 18 additions and 15 deletions

View File

@@ -208,7 +208,6 @@ public class AiAttackController {
* @return a boolean.
*/
public final boolean isEffectiveAttacker(final Player ai, final Card attacker, final Combat combat) {
// if the attacker will die when attacking don't attack
if ((attacker.getNetToughness() + ComputerUtilCombat.predictToughnessBonusOfAttacker(attacker, null, combat, true)) <= 0) {
return false;

View File

@@ -314,14 +314,14 @@ public abstract class GameState {
} else if (c.getCurrentStateName().equals(CardStateName.Modal)) {
newText.append("|Modal");
}
if (c.isAttachedToEntity()) {
newText.append("|AttachedTo:").append(c.getEntityAttachedTo().getId());
}
if (c.getPlayerAttachedTo() != null) {
// TODO: improve this for game states with more than two players
newText.append("|EnchantingPlayer:");
Player p = c.getPlayerAttachedTo();
newText.append(p.getController().isAI() ? "AI" : "HUMAN");
} else if (c.isAttachedToEntity()) {
newText.append("|AttachedTo:").append(c.getEntityAttachedTo().getId());
}
if (c.getDamage() > 0) {

View File

@@ -17,7 +17,7 @@ public class RepeatEffect extends SpellAbilityEffect {
@Override
protected String getStackDescription(final SpellAbility sa) {
return "Repeat something. Somebody should really write a better StackDescription!";
} // end repeatStackDescription()
}
@Override
public void resolve(final SpellAbility sa) {

View File

@@ -3,6 +3,6 @@ ManaCost:3 W
Types:Enchantment
T:Mode$ Phase | Phase$ Upkeep | CheckSVar$ X | SVarCompare$ GE1 | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of each upkeep, if you lost life last turn, create a 1/1 white Soldier creature token.
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ w_1_1_soldier | TokenOwner$ You | LegacyImage$ w 1 1 soldier m15
SVar:X:Count$Controller$LifeLostLastTurn
SVar:X:PlayerCountPropertyYou$LifeLostLastTurn
SVar:Picture:http://www.wizards.com/global/images/magic/general/first_response.jpg
Oracle:At the beginning of each upkeep, if you lost life last turn, create a 1/1 white Soldier creature token.

View File

@@ -3,13 +3,11 @@ ManaCost:1 B G
Types:Legendary Planeswalker Grist
Loyalty:3
S:Mode$ Continuous | Affected$ Card.Self | ExcludeZone$ Battlefield | SetPower$ 1 | SetToughness$ 1 | AddType$ Creature & Insect | CharacteristicDefining$ True | Description$ As long as CARDNAME isn't on the battlefield, it's a 1/1 Insect creature in addition to its other types.
A:AB$ Effect | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | SubAbility$ DBRepeat | SpellDescription$ Create a 1/1 black and green Insect creature token, then mill a card. If an Insect card was milled this way, put a loyalty counter on Grist and repeat this process.
SVar:DBRepeat:DB$ Repeat | RepeatSubAbility$ CleanupBegin | MaxRepeat$ MaxRepeats | RepeatCheckSVar$ MilledInsect | RepeatSVarCompare$ EQ1 | SubAbility$ DBCleanup
A:AB$ Repeat | Cost$ AddCounter<1/LOYALTY> | Planeswalker$ True | RepeatSubAbility$ CleanupBegin | RepeatCheckSVar$ MilledInsect | RepeatSVarCompare$ EQ1 | SubAbility$ DBCleanup | SpellDescription$ Create a 1/1 black and green Insect creature token, then mill a card. If an Insect card was milled this way, put a loyalty counter on Grist and repeat this process. | StackDescription$ Spelldescription
SVar:CleanupBegin:DB$ Cleanup | ClearRemembered$ True | SubAbility$ DBToken
SVar:DBToken:DB$ Token | TokenAmount$ 1 | TokenScript$ bg_1_1_insect | TokenOwner$ You | Planeswalker$ True | SubAbility$ DBMill | SpellDescription$ Create a 1/1 black and green Insect creature token, then mill a card. If an Insect card was milled this way, put a loyalty counter on Grist and repeat this process.
SVar:DBMill:DB$ Mill | Defined$ You | NumCards$ 1 | RememberMilled$ True | SubAbility$ DBPutCounter
SVar:DBPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ LOYALTY | CounterNum$ 1 | ConditionDefined$ Remembered | ConditionPresent$ Card.Insect | ConditionCompare$ EQ1
SVar:MaxRepeats:Count$InYourLibrary
SVar:MilledInsect:Remembered$Valid Card.Insect
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
A:AB$ ImmediateTrigger | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | Execute$ TrigDestroy | UnlessCost$ Sac<1/Creature> | UnlessPayer$ You | UnlessSwitched$ True | SpellDescription$ You may sacrifice a creature. When you do, destroy target creature or planeswalker.
@@ -18,4 +16,4 @@ A:AB$ LoseLife | Cost$ SubCounter<5/LOYALTY> | LifeAmount$ X | Defined$ Player.O
SVar:X:Count$TypeInYourYard.Creature
DeckHas:Ability$Token & Ability$Mill
DeckHints:Type$Insect
Oracle:As long as Grist, the Hunger Tide isn't on the battlefield, it's a 1/1 Insect creature in addition to its other types.\n[+1]: Create a 1/1 black and green Insect creature token, then mill a card. If an Insect card was milled this way, put a loyalty counter on Grist and repeat this process.\n[2]: You may sacrifice a creature. When you do, destroy target creature or planeswalker.\n[5]: Each opponent loses life equal to the number of creature cards in your graveyard.
Oracle:As long as Grist, the Hunger Tide isn't on the battlefield, it's a 1/1 Insect creature in addition to its other types.\n[+1]: Create a 1/1 black and green Insect creature token, then mill a card. If an Insect card was milled this way, put a loyalty counter on Grist and repeat this process.\n[-2]: You may sacrifice a creature. When you do, destroy target creature or planeswalker.\n[-5]: Each opponent loses life equal to the number of creature cards in your graveyard.

View File

@@ -6,7 +6,7 @@ T:Mode$ Phase | Phase$ Upkeep | CheckSVar$ X | SVarCompare$ GE1 | TriggerZones$
SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME dies, you gain life equal to its toughness.
SVar:TrigGainLife:DB$GainLife | Defined$ TriggeredCardController | LifeAmount$ Y
SVar:X:Count$Controller$LifeLostLastTurn
SVar:X:PlayerCountPropertyYou$LifeLostLastTurn
SVar:Y:TriggeredCard$CardToughness
SVar:Picture:http://www.wizards.com/global/images/magic/general/paladin_of_atonement.jpg
Oracle:At the beginning of each upkeep, if you lost life last turn, put a +1/+1 counter on Paladin of Atonement.\nWhen Paladin of Atonement dies, you gain life equal to its toughness.

View File

@@ -788,6 +788,11 @@ ScryfallCode=J21
780 C Tranquil Thicket
781 C Unknown Shores
782 C Wind-Scarred Crag
783 L Plains
784 L Island
785 L Swamp
786 L Mountain
787 L Forest
[tokens]
u_8_8_kraken

View File

@@ -12,4 +12,4 @@ ScryfallCode=PMPS08
3 R Swamp @John Avon
4 R Mountain @John Avon
5 R Forest @John Avon
a1%202007 R Jaya Ballard, Task Mage @Matt Cavotta
A1 R Jaya Ballard, Task Mage @Matt Cavotta

View File

@@ -55,6 +55,7 @@ ScryfallCode=SLD
56 R Arcbound Ravager @Danny Miller
57 M Darksteel Colossus @Hector Ortiz
58 R Walking Ballista @Bad Flip Productions, Inc.
59 R Squire @Noah Bradley
60 R Storm Crow @Jesper Ejsing
61 R Goblin Snowman @Victor Adame Minguez
62 R Mudhole @Titus Lunter