- The AI will no longer use the DealDamage AF abilities when the damage is 0.

This commit is contained in:
Sloth
2011-09-11 08:22:45 +00:00
parent 224c2e0aae
commit 33af95e819

View File

@@ -239,6 +239,9 @@ public class AbilityFactory_DealDamage {
dmg = getNumDamage(saMe); dmg = getNumDamage(saMe);
boolean rr = AF.isSpell(); boolean rr = AF.isSpell();
if(dmg <= 0)
return false;
// temporarily disabled until better AI // temporarily disabled until better AI
if (!CostUtil.checkLifeCost(abCost, source, 4)) if (!CostUtil.checkLifeCost(abCost, source, 4))
return false; return false;