Nicol Bolas, the Ravager - added InTargetedLibrary for Xcounts

This commit is contained in:
austinio7116
2018-06-30 11:53:01 +01:00
committed by maustin
parent 419cfc1f39
commit 0394e4dff7
2 changed files with 38 additions and 0 deletions

View File

@@ -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();