- The AI will now respect restrictions of mana abilities.

- Removed SVar:RemAIDeck:True from the Tainted lands.
This commit is contained in:
jendave
2011-08-07 01:54:44 +00:00
parent aa503a8b08
commit da5479a932
5 changed files with 5 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ W | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add W to your mana pool. Activate this ability only if you control a Swamp.
A:AB$ Mana | Cost$ T | Produced$ B | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add B to your mana pool. Activate this ability only if you control a Swamp.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/tainted_field.jpg
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/140.jpg

View File

@@ -5,7 +5,6 @@ Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ U | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add U to your mana pool. Activate this ability only if you control a Swamp.
A:AB$ Mana | Cost$ T | Produced$ B | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add B to your mana pool. Activate this ability only if you control a Swamp.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/tainted_isle.jpg
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/141.jpg

View File

@@ -5,7 +5,6 @@ Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ B | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add B to your mana pool. Activate this ability only if you control a Swamp.
A:AB$ Mana | Cost$ T | Produced$ R | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add R to your mana pool. Activate this ability only if you control a Swamp.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/tainted_peak.jpg
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/142.jpg

View File

@@ -5,7 +5,6 @@ Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Mana | Cost$ T | Produced$ B | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add B to your mana pool. Activate this ability only if you control a Swamp.
A:AB$ Mana | Cost$ T | Produced$ G | IsPresent$ Swamp.YouCtrl | SpellDescription$ Add G to your mana pool. Activate this ability only if you control a Swamp.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/tainted_wood.jpg
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/143.jpg

View File

@@ -716,6 +716,11 @@ public class ComputerUtil
ArrayList<Ability_Mana> mana = land.getManaAbility();
for(Ability_Mana m : mana){
//if the mana ability is not avaiable move to the next one
m.setActivatingPlayer(land.getController());
if (!m.canPlay()) continue;
if (!colors.contains(Constant.Color.Black) && m.isBasic() && m.mana().equals("B"))
colors.add(Constant.Color.Black);
if (!colors.contains(Constant.Color.White) && m.isBasic() && m.mana().equals("W"))