mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Added another check for r31096
This commit is contained in:
@@ -77,7 +77,7 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
for (; loyalty > 0; loyalty--) {
|
for (; loyalty > 0; loyalty--) {
|
||||||
if (this.damageTargetAI(ai, sa, loyalty, false)) {
|
if (this.damageTargetAI(ai, sa, loyalty, false)) {
|
||||||
dmg = ComputerUtilCombat.getEnoughDamageToKill(sa.getTargetCard(), loyalty, source, false, false);
|
dmg = ComputerUtilCombat.getEnoughDamageToKill(sa.getTargetCard(), loyalty, source, false, false);
|
||||||
if (dmg > loyalty) {
|
if (dmg > loyalty || dmg < 1) {
|
||||||
continue; // in case the calculation gets messed up somewhere
|
continue; // in case the calculation gets messed up somewhere
|
||||||
}
|
}
|
||||||
source.setSVar("ChosenX", "Number$" + dmg);
|
source.setSVar("ChosenX", "Number$" + dmg);
|
||||||
|
|||||||
Reference in New Issue
Block a user