- Improved AI using Fireball (still very much incomplete).

This commit is contained in:
Sloth
2015-08-06 22:16:12 +00:00
parent df37d67bf0
commit 33acaf6c8b
3 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ import forge.game.player.Player;
import forge.game.player.PlayerActionConfirmMode;
import forge.game.spellability.SpellAbility;
import forge.game.spellability.TargetRestrictions;
import forge.game.zone.ZoneType;
import java.util.ArrayList;
import java.util.List;

View File

@@ -339,6 +339,9 @@ public class DamageDealAi extends DamageAiBase {
}
continue;
}
if ("RoundedDown".equals(sa.getParam("DivideEvenly"))) {
dmg = dmg * sa.getTargets().getNumTargeted() / (sa.getTargets().getNumTargeted() +1);
}
final Card c = this.dealDamageChooseTgtC(ai, sa, dmg, noPrevention, enemy, false);
if (c != null) {