mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed AI blocking with tapped creatures with First Strike.
This commit is contained in:
@@ -191,9 +191,9 @@ public class ComputerUtil_Block2
|
|||||||
blockers = getPossibleBlockers(attacker, blockersLeft, combat);
|
blockers = getPossibleBlockers(attacker, blockersLeft, combat);
|
||||||
CardList firstStrikeBlockers = new CardList();
|
CardList firstStrikeBlockers = new CardList();
|
||||||
CardList blockGang = new CardList();
|
CardList blockGang = new CardList();
|
||||||
for(int i = 0; i < possibleBlockers.size(); i++)
|
for(int i = 0; i < blockers.size(); i++)
|
||||||
if(possibleBlockers.get(i).hasFirstStrike() || possibleBlockers.get(i).hasDoubleStrike())
|
if(blockers.get(i).hasFirstStrike() || blockers.get(i).hasDoubleStrike())
|
||||||
firstStrikeBlockers.add(possibleBlockers.get(i));
|
firstStrikeBlockers.add(blockers.get(i));
|
||||||
|
|
||||||
if(!firstStrikeBlockers.isEmpty()) {
|
if(!firstStrikeBlockers.isEmpty()) {
|
||||||
CardListUtil.sortAttack(firstStrikeBlockers);
|
CardListUtil.sortAttack(firstStrikeBlockers);
|
||||||
|
|||||||
Reference in New Issue
Block a user