Fix Arvinox sometimes failing (#7023)

This commit is contained in:
tool4ever
2025-02-16 14:16:42 +01:00
committed by GitHub
parent afc4024287
commit 16e871be7b
2 changed files with 7 additions and 5 deletions

View File

@@ -651,12 +651,14 @@ public class CardProperty {
return false;
}
} else if (property.startsWith("TopLibrary") || property.startsWith("BottomLibrary")) {
CardCollection cards = (CardCollection) card.getOwner().getCardsIn(ZoneType.Library);
CardCollectionView cards = card.getOwner().getCardsIn(ZoneType.Library);
if (!property.equals("TopLibrary")) {
if (property.equals("TopLibraryLand")) cards = CardLists.filter(cards, CardPredicates.LANDS);
else if (property.contains("_")) cards = CardLists.getValidCards(cards, property.split("_")[1],
if (property.contains("_")) cards = CardLists.getValidCards(cards, property.split("_")[1],
sourceController, source, spellAbility);
if (property.startsWith("Bottom")) Collections.reverse(cards);
if (property.startsWith("Bottom")) {
cards = new CardCollection(cards);
Collections.reverse((CardCollection) cards);
}
}
if (cards.isEmpty() || !card.equals(cards.get(0))) return false;
} else if (property.startsWith("Cloned")) {

View File

@@ -4,7 +4,7 @@ Types:Enchantment
R:Event$ Moved | ValidCard$ Land.YouCtrl | Destination$ Battlefield | ReplaceWith$ ETBUntapped | ReplacementResult$ Updated | ActiveZones$ Battlefield | Description$ Lands you control enter the battlefield untapped.
SVar:ETBUntapped:DB$ Untap | ETB$ True | Defined$ ReplacedCard
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigAnimate | TriggerDescription$ At the beginning of your end step, the topmost land card in your library perpetually gains "Whenever this land is tapped for mana, add an additional {G}."
SVar:TrigAnimate:DB$ Animate | Defined$ ValidLibrary Land.TopLibraryLand+YouCtrl | Triggers$ ManaTap | Duration$ Perpetual
SVar:TrigAnimate:DB$ Animate | Defined$ ValidLibrary Land.TopLibrary_Land+YouCtrl | Triggers$ ManaTap | Duration$ Perpetual
SVar:ManaTap:Mode$ TapsForMana | ValidCard$ Card.Self | Execute$ TrigMana | Static$ True | TriggerDescription$ Whenever this land is tapped for mana, add an additional {G}.
SVar:TrigMana:DB$ Mana | Produced$ G | Amount$ 1 | Defined$ TriggeredCardController
Oracle:Lands you control enter the battlefield untapped.\nAt the beginning of your end step, the topmost land card in your library perpetually gains "Whenever this land is tapped for mana, add an additional {G}."