mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Minor code reorganization in ComputerUtilCard.
This commit is contained in:
@@ -1364,9 +1364,11 @@ public class ComputerUtilCard {
|
|||||||
pumpedDmg = 0;
|
pumpedDmg = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( (!c.hasKeyword("Infect") && pumpedDmg > dmg && pumpedDmg >= opp.getLife())
|
if (pumpedDmg > dmg) {
|
||||||
|| (c.hasKeyword("Infect") && pumpedDmg > dmg && pumpedDmg >= opp.getPoisonCounters()) ) {
|
if ((!c.hasKeyword("Infect") && pumpedDmg >= opp.getLife())
|
||||||
return true;
|
|| (c.hasKeyword("Infect") && pumpedDmg >= opp.getPoisonCounters())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// try to determine if pumping a creature for more power will give lethal on board
|
// try to determine if pumping a creature for more power will give lethal on board
|
||||||
// considering all unblocked creatures after the blockers are already declared
|
// considering all unblocked creatures after the blockers are already declared
|
||||||
|
|||||||
Reference in New Issue
Block a user