- Fixed AI not using Ancient Tomb.

This commit is contained in:
Sloth
2013-03-20 16:47:52 +00:00
parent cf60782cca
commit 31756b86cf
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ Name:Ancient Tomb
ManaCost:no cost
Types:Land
A:AB$ Mana | Cost$ T | Produced$ 1 | Amount$ 2 | SubAbility$ DBPain | SpellDescription$ Add 2 to your mana pool. CARDNAME deals 2 damage to you.
SVar:DBPain:DB$DealDamage | NumDmg$ 2 | Defined$ You
SVar:DBPain:DB$ DealDamage | NumDmg$ 2 | Defined$ You
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/ancient_tomb.jpg
Oracle:{T}: Add {2} to your mana pool. Ancient Tomb deals 2 damage to you.

View File

@@ -12,6 +12,7 @@ import forge.Singletons;
import forge.card.ability.AbilityUtils;
import forge.card.ability.SpellAbilityAi;
import forge.card.cost.Cost;
import forge.card.spellability.AbilitySub;
import forge.card.spellability.SpellAbility;
import forge.card.spellability.Target;
import forge.card.spellability.TargetSelection;
@@ -382,7 +383,7 @@ public class DamageDealAi extends DamageAiBase {
}
}
}
if (!positive) {
if (!positive && !(saMe instanceof AbilitySub)) {
return false;
}
if (!urgent && !SpellAbilityAi.playReusable(ai, saMe)) {