mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed AF Regenerate AI targeting creatures with shroud.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user