mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
1) remove Lifeforce and Deathgrip from AI decks
2) fix potential NullPointerException in canPlayAI for Lifeforce and Deathgrip
This commit is contained in:
@@ -2,6 +2,7 @@ Name:Deathgrip
|
|||||||
ManaCost:B B
|
ManaCost:B B
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:B B: Counter target green spell.
|
Text:B B: Counter target green spell.
|
||||||
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/deathgrip.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/deathgrip.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ Name:Lifeforce
|
|||||||
ManaCost:G G
|
ManaCost:G G
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:G G: Counter target black spell.
|
Text:G G: Counter target black spell.
|
||||||
|
SVar:RemAIDeck:True
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifeforce.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/lifeforce.jpg
|
||||||
End
|
End
|
||||||
|
|||||||
@@ -11868,6 +11868,9 @@ public class CardFactory implements NewConstants {
|
|||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
System.out.println("AI is pondering using "+cardName);
|
System.out.println("AI is pondering using "+cardName);
|
||||||
|
if(AllZone.Stack.size() == 0){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
SpellAbility sa = AllZone.Stack.peek();
|
SpellAbility sa = AllZone.Stack.peek();
|
||||||
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
||||||
}
|
}
|
||||||
@@ -11905,6 +11908,9 @@ public class CardFactory implements NewConstants {
|
|||||||
@Override
|
@Override
|
||||||
public boolean canPlayAI() {
|
public boolean canPlayAI() {
|
||||||
System.out.println("AI is pondering using "+cardName);
|
System.out.println("AI is pondering using "+cardName);
|
||||||
|
if(AllZone.Stack.size() == 0){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
SpellAbility sa = AllZone.Stack.peek();
|
SpellAbility sa = AllZone.Stack.peek();
|
||||||
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user