1) remove Lifeforce and Deathgrip from AI decks

2) fix potential NullPointerException in canPlayAI for Lifeforce and Deathgrip
This commit is contained in:
jendave
2011-08-06 09:58:15 +00:00
parent f47dd86281
commit e85784c902
3 changed files with 8 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ Name:Deathgrip
ManaCost:B B
Types:Enchantment
Text:B B: Counter target green spell.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/deathgrip.jpg
End

View File

@@ -2,6 +2,7 @@ Name:Lifeforce
ManaCost:G G
Types:Enchantment
Text:G G: Counter target black spell.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifeforce.jpg
End

View File

@@ -11868,6 +11868,9 @@ public class CardFactory implements NewConstants {
@Override
public boolean canPlayAI() {
System.out.println("AI is pondering using "+cardName);
if(AllZone.Stack.size() == 0){
return false;
}
SpellAbility sa = AllZone.Stack.peek();
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
}
@@ -11905,6 +11908,9 @@ public class CardFactory implements NewConstants {
@Override
public boolean canPlayAI() {
System.out.println("AI is pondering using "+cardName);
if(AllZone.Stack.size() == 0){
return false;
}
SpellAbility sa = AllZone.Stack.peek();
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
}