The Soul Stone and support (#8579)

This commit is contained in:
tool4ever
2025-09-01 13:45:01 +02:00
committed by GitHub
parent bfe0a78765
commit ec21a0c789
5 changed files with 30 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ public class AlterAttributeEffect extends SpellAbilityEffect {
boolean altered = false;
switch (attr.trim()) {
case "Harnessed":
altered = gameCard.setHarnessed(activate);
break;
case "Plotted":
altered = gameCard.setPlotted(activate);

View File

@@ -203,6 +203,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
private boolean unearthed;
private boolean ringbearer;
private boolean monstrous;
private boolean harnessed;
private boolean renowned;
private boolean solved;
private boolean tributed;
@@ -2969,6 +2970,9 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
if (monstrous) {
sb.append("Monstrous\r\n");
}
if (harnessed) {
sb.append("Harnessed\r\n");
}
if (renowned) {
sb.append("Renowned\r\n");
}
@@ -6693,6 +6697,14 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars, ITr
setRingBearer(false);
}
public final boolean isHarnessed() {
return harnessed;
}
public final boolean setHarnessed(final boolean harnessed0) {
harnessed = harnessed0;
return true;
}
public final boolean isMonstrous() {
return monstrous;
}

View File

@@ -1828,6 +1828,10 @@ public class CardProperty {
if (card.getDevouredCards().isEmpty()) {
return false;
}
} else if (property.equals("harnessed")) {
if (!card.isHarnessed()) {
return false;
}
} else if (property.equals("IsMonstrous")) {
if (!card.isMonstrous()) {
return false;

View File

@@ -0,0 +1,9 @@
Name:The Soul Stone
ManaCost:1 B
Types:Legendary Artifact Infinity Stone
K:Indestructible
A:AB$ AlterAttribute | Cost$ 6 B Exile<1/Creature> | Defined$ Self | Attributes$ Harnessed | StackDescription$ SpellDescription | SpellDescription$ Harness CARDNAME. (Once harnessed, its ∞ ability is active.)
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | IsPresent$ Card.Self+harnessed | TriggerZones$ Battlefield | Execute$ TrigReturn | TriggerDescription$ ∞ — At the beginning of your upkeep, return target creature card from your graveyard to the battlefield.
SVar:TrigReturn:DB$ Changezone | ValidTgts$ Creature.YouOwn | Origin$ Graveyard | Destination$ Battlefield
DeckHints:Ability$Graveyard
Oracle:Indestructible\n{T}: Add {B}.\n{6}{B}, {T}, Exile a creature you control: Harness The Soul Stone. (Once harnessed, its ∞ ability is active.)\n∞ — At the beginning of your upkeep, return target creature card from your graveyard to the battlefield.

View File

@@ -368,12 +368,14 @@ Food:Foods
Fortification
Gold
Incubator:Incubators
Infinity
Junk
Key:Keys
Lander:Landers
Map
Powerstone:Powerstones
Spacecraft:Spacecraft
Stone:Stones
Treasure:Treasures
Vehicle:Vehicles
[WalkerTypes]