mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed AI sometimes holding back creatures with vigilance.
This commit is contained in:
@@ -241,6 +241,13 @@ public class ComputerUtilAttack {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// re-add creatures with vigilance
|
||||||
|
for (final Card c : attackers) {
|
||||||
|
if (c.hasKeyword("Vigilance")) {
|
||||||
|
notNeededAsBlockers.add(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (blockersNeeded == list.size()) {
|
if (blockersNeeded == list.size()) {
|
||||||
// Human will win unless everything is kept back to block
|
// Human will win unless everything is kept back to block
|
||||||
return notNeededAsBlockers;
|
return notNeededAsBlockers;
|
||||||
@@ -284,14 +291,6 @@ public class ComputerUtilAttack {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-add creatures with vigilance
|
|
||||||
for (final Card c : attackers) {
|
|
||||||
if (c.hasKeyword("Vigilance")) {
|
|
||||||
notNeededAsBlockers.add(c);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return notNeededAsBlockers;
|
return notNeededAsBlockers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user