mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Added Thromok the Insatiable
- Fixed Marrow Chomper's etb trigger
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -9846,6 +9846,7 @@ res/cardsfolder/t/thrill_of_the_hunt.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/t/thriss_nantuko_primus.txt svneol=native#text/plain
|
res/cardsfolder/t/thriss_nantuko_primus.txt svneol=native#text/plain
|
||||||
res/cardsfolder/t/thrive.txt svneol=native#text/plain
|
res/cardsfolder/t/thrive.txt svneol=native#text/plain
|
||||||
res/cardsfolder/t/throat_slitter.txt svneol=native#text/plain
|
res/cardsfolder/t/throat_slitter.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/t/thromok_the_insatiable.txt -text
|
||||||
res/cardsfolder/t/throne_of_bone.txt svneol=native#text/plain
|
res/cardsfolder/t/throne_of_bone.txt svneol=native#text/plain
|
||||||
res/cardsfolder/t/throne_of_empires.txt -text
|
res/cardsfolder/t/throne_of_empires.txt -text
|
||||||
res/cardsfolder/t/throne_of_geth.txt svneol=native#text/plain
|
res/cardsfolder/t/throne_of_geth.txt svneol=native#text/plain
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ PT:3/3
|
|||||||
K:Devour:2
|
K:Devour:2
|
||||||
T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME enters the battlefield, you gain 2 life for each creature it devoured.
|
T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME enters the battlefield, you gain 2 life for each creature it devoured.
|
||||||
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X | References$ X
|
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X | References$ X
|
||||||
SVar:X:Count$Devoured Card
|
SVar:X:Count$Devoured Card/Twice
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/marrow_chomper.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/marrow_chomper.jpg
|
||||||
SetInfo:ARB|Uncommon|http://magiccards.info/scans/en/arb/93.jpg
|
SetInfo:ARB|Uncommon|http://magiccards.info/scans/en/arb/93.jpg
|
||||||
|
|||||||
12
res/cardsfolder/t/thromok_the_insatiable.txt
Normal file
12
res/cardsfolder/t/thromok_the_insatiable.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Name:Thromok the Insatiable
|
||||||
|
ManaCost:3 R G
|
||||||
|
Types:Legendary Creature Hellion
|
||||||
|
Text:no text
|
||||||
|
PT:0/0
|
||||||
|
K:Devour:X:, where X is the number of creatures devoured this way
|
||||||
|
SVar:X:Count$Devoured Creature
|
||||||
|
SVar:Rarity:Common
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/thromok_the_insatiable.jpg
|
||||||
|
SetInfo:PC2|Mythic|http://magiccards.info/scans/en/pc2/106.jpg
|
||||||
|
Oracle:Devour X, where X is the number of creatures devoured this way (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with X +1/+1 counters on it for each of those creatures.)
|
||||||
|
End
|
||||||
@@ -2238,13 +2238,17 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
String k = keywords.get(i);
|
String k = keywords.get(i);
|
||||||
k = k.replace("Curse", "");
|
k = k.replace("Curse", "");
|
||||||
sbLong.append(k).append("\r\n");
|
sbLong.append(k).append("\r\n");
|
||||||
} else if (keyword.startsWith("Soulshift") || keywords.get(i).startsWith("Devour")
|
} else if (keyword.startsWith("Soulshift") || keyword.startsWith("Fading")
|
||||||
|| keyword.startsWith("Fading")
|
|
||||||
|| keyword.startsWith("Ripple") || keywords.get(i).startsWith("Unearth")
|
|| keyword.startsWith("Ripple") || keywords.get(i).startsWith("Unearth")
|
||||||
|| keyword.startsWith("Vanishing") || keywords.get(i).startsWith("Madness")) {
|
|| keyword.startsWith("Vanishing") || keywords.get(i).startsWith("Madness")) {
|
||||||
String k = keywords.get(i);
|
String k = keywords.get(i);
|
||||||
k = k.replace(":", " ");
|
k = k.replace(":", " ");
|
||||||
sbLong.append(k).append("\r\n");
|
sbLong.append(k).append("\r\n");
|
||||||
|
} else if (keyword.startsWith("Devour")) {
|
||||||
|
final String[] parts = keyword.split(":");
|
||||||
|
final String extra = parts.length > 2 ? parts[2] : "";
|
||||||
|
final String devour = "Devour " + parts[1] + extra;
|
||||||
|
sbLong.append(devour).append("\r\n");
|
||||||
} else if (keyword.startsWith("Morph")) {
|
} else if (keyword.startsWith("Morph")) {
|
||||||
sbLong.append("Morph");
|
sbLong.append("Morph");
|
||||||
if (keyword.contains(":")) {
|
if (keyword.contains(":")) {
|
||||||
@@ -2624,7 +2628,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
sb.append(" You may choose new targets for the copies.");
|
sb.append(" You may choose new targets for the copies.");
|
||||||
}
|
}
|
||||||
sb.append(")\r\n");
|
sb.append(")\r\n");
|
||||||
}else if (keyword.startsWith("Haunt")) {
|
} else if (keyword.startsWith("Haunt")) {
|
||||||
if (sb.toString().endsWith("\r\n\r\n")) {
|
if (sb.toString().endsWith("\r\n\r\n")) {
|
||||||
sb.delete(sb.lastIndexOf("\r\n"), sb.lastIndexOf("\r\n") + 3);
|
sb.delete(sb.lastIndexOf("\r\n"), sb.lastIndexOf("\r\n") + 3);
|
||||||
}
|
}
|
||||||
@@ -6570,7 +6574,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (Singletons.getModel().getGameState().getPhaseHandler().isPlayerTurn(this.getController())) {
|
if (Singletons.getModel().getGameState().getPhaseHandler().isPlayerTurn(this.getController())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}else if (property.startsWith("YouOwn")) {
|
} else if (property.startsWith("YouOwn")) {
|
||||||
if (!this.getOwner().isPlayer(sourceController)) {
|
if (!this.getOwner().isPlayer(sourceController)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4971,7 +4971,6 @@ public class CardFactoryUtil {
|
|||||||
final String[] k = parse.split(":");
|
final String[] k = parse.split(":");
|
||||||
final String magnitude = k[1];
|
final String magnitude = k[1];
|
||||||
|
|
||||||
final int multiplier = Integer.parseInt(magnitude);
|
|
||||||
// final String player = card.getController();
|
// final String player = card.getController();
|
||||||
final int[] numCreatures = new int[1];
|
final int[] numCreatures = new int[1];
|
||||||
|
|
||||||
@@ -5011,6 +5010,8 @@ public class CardFactoryUtil {
|
|||||||
}
|
}
|
||||||
numCreatures[0] = count;
|
numCreatures[0] = count;
|
||||||
}
|
}
|
||||||
|
final int multiplier = magnitude.equals("X") ? AbilityFactory.calculateAmount(card, magnitude, null)
|
||||||
|
: Integer.parseInt(magnitude);
|
||||||
final int totalCounters = numCreatures[0] * multiplier;
|
final int totalCounters = numCreatures[0] * multiplier;
|
||||||
|
|
||||||
card.addCounter(Counters.P1P1, totalCounters);
|
card.addCounter(Counters.P1P1, totalCounters);
|
||||||
|
|||||||
Reference in New Issue
Block a user