mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Nicol Bolas, the Ravager - added InTargetedLibrary for Xcounts
This commit is contained in:
@@ -1499,6 +1499,18 @@ public class CardFactoryUtil {
|
||||
}
|
||||
}
|
||||
|
||||
// Count$InTargetedHand (targeted player's cards in hand)
|
||||
if (sq[0].contains("InTargetedLibrary")) {
|
||||
for (final SpellAbility sa : c.getCurrentState().getNonManaAbilities()) {
|
||||
final SpellAbility saTargeting = sa.getSATargetingPlayer();
|
||||
if (saTargeting != null) {
|
||||
for (final Player tgtP : saTargeting.getTargets().getTargetPlayers()) {
|
||||
someCards.addAll(tgtP.getCardsIn(ZoneType.Library));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Count$InTargetedHand (targeted player's cards in hand)
|
||||
if (sq[0].contains("InEnchantedHand")) {
|
||||
GameEntity o = c.getEnchanting();
|
||||
|
||||
Reference in New Issue
Block a user