- Fixed AF Regenerate AI targeting creatures with shroud.

This commit is contained in:
Sloth
2012-10-12 18:29:39 +00:00
parent 25c3cd0f54
commit 13b44bcff7

View File

@@ -318,6 +318,7 @@ public class AbilityFactoryRegenerate {
// filter AIs battlefield by what I can target
List<Card> targetables = ai.getCardsIn(ZoneType.Battlefield);
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
targetables = CardLists.getTargetableCards(targetables, sa);
if (targetables.size() == 0) {
return false;
@@ -421,6 +422,7 @@ public class AbilityFactoryRegenerate {
// filter AIs battlefield by what I can target
List<Card> targetables = AllZoneUtil.getCardsIn(ZoneType.Battlefield);
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
targetables = CardLists.getTargetableCards(targetables, sa);
final List<Card> compTargetables = CardLists.filterControlledBy(targetables, ai);
if (targetables.size() == 0) {