mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI not using Ancient Tomb.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user