mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Merge branch 'patch' into 'master'
Fix Nykthos See merge request core-developers/forge!2398
This commit is contained in:
@@ -1068,10 +1068,6 @@ public class CardFactoryUtil {
|
||||
// Count$Chroma.<color name>
|
||||
if (sq[0].contains("Chroma")) {
|
||||
ZoneType sourceZone = sq[0].contains("ChromaInGrave") ? ZoneType.Graveyard : ZoneType.Battlefield;
|
||||
String colorName = sq[1];
|
||||
if (colorName.contains("Chosen")) {
|
||||
colorName = MagicColor.toShortString(c.getChosenColor());
|
||||
}
|
||||
final CardCollectionView cards;
|
||||
if (sq[0].contains("ChromaSource")) { // Runs Chroma for passed in Source card
|
||||
cards = new CardCollection(c);
|
||||
@@ -1081,7 +1077,7 @@ public class CardFactoryUtil {
|
||||
}
|
||||
|
||||
int colorOcurrencices = 0;
|
||||
byte colorCode = ManaAtom.fromName(colorName);
|
||||
byte colorCode = ManaAtom.fromName(sq[1]);
|
||||
for (Card c0 : cards) {
|
||||
for (ManaCostShard sh : c0.getManaCost()){
|
||||
if ((sh.getColorMask() & colorCode) != 0)
|
||||
@@ -1094,7 +1090,11 @@ public class CardFactoryUtil {
|
||||
// Count$Devotion.<color name>
|
||||
if (sq[0].contains("Devotion")) {
|
||||
int colorOcurrencices = 0;
|
||||
byte colorCode = ManaAtom.fromName(sq[1]);
|
||||
String colorName = sq[1];
|
||||
if (colorName.contains("Chosen")) {
|
||||
colorName = MagicColor.toShortString(c.getChosenColor());
|
||||
}
|
||||
byte colorCode = ManaAtom.fromName(colorName);
|
||||
if (sq[0].equals("DevotionDual")) {
|
||||
colorCode |= ManaAtom.fromName(sq[2]);
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ SVar:Y:Count$InYourLibrary
|
||||
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigDig | TriggerDescription$ When CARDNAME enters the battlefield, look at the top X cards of your library, where X is your devotion to blue. Put one of them on top of your library and the rest on the bottom of your library in a random order. If X is greater than or equal to the number of cards in your library, you win the game.
|
||||
SVar:TrigDig:DB$Dig | DigNum$ X | ChangeNum$ 1 | Optional$ True | DestinationZone$ Library | References$ X | LibraryPosition$ 0 | SubAbility$ DBWin
|
||||
SVar:DBWin:DB$ WinsGame | Defined$ You | ConditionCheckSVar$ Y | ConditionSVarCompare$ LEX | References$ X,Y
|
||||
Oracle:When Thassa’s Oracle enters the battlefield, look at the top X cards of your library, where X is your devotion to blue. Put one of them on top of your library and the rest on the bottom of your library in a random order. If X is greater than or equal to the number of cards in your library, you win the game. (Each {U} in the mana costs of permanents you control counts toward your devotion to blue.)
|
||||
Oracle:When Thassa's Oracle enters the battlefield, look at the top X cards of your library, where X is your devotion to blue. Put one of them on top of your library and the rest on the bottom of your library in a random order. If X is greater than or equal to the number of cards in your library, you win the game. (Each {U} in the mana costs of permanents you control counts toward your devotion to blue.)
|
||||
Reference in New Issue
Block a user