mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +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
|
// filter AIs battlefield by what I can target
|
||||||
List<Card> targetables = ai.getCardsIn(ZoneType.Battlefield);
|
List<Card> targetables = ai.getCardsIn(ZoneType.Battlefield);
|
||||||
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
|
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
|
||||||
|
targetables = CardLists.getTargetableCards(targetables, sa);
|
||||||
|
|
||||||
if (targetables.size() == 0) {
|
if (targetables.size() == 0) {
|
||||||
return false;
|
return false;
|
||||||
@@ -421,6 +422,7 @@ public class AbilityFactoryRegenerate {
|
|||||||
// filter AIs battlefield by what I can target
|
// filter AIs battlefield by what I can target
|
||||||
List<Card> targetables = AllZoneUtil.getCardsIn(ZoneType.Battlefield);
|
List<Card> targetables = AllZoneUtil.getCardsIn(ZoneType.Battlefield);
|
||||||
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
|
targetables = CardLists.getValidCards(targetables, tgt.getValidTgts(), ai, hostCard);
|
||||||
|
targetables = CardLists.getTargetableCards(targetables, sa);
|
||||||
final List<Card> compTargetables = CardLists.filterControlledBy(targetables, ai);
|
final List<Card> compTargetables = CardLists.filterControlledBy(targetables, ai);
|
||||||
|
|
||||||
if (targetables.size() == 0) {
|
if (targetables.size() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user