- Some fixes for when the Human tries to Activate cards the AI controls but shouldn't be able to Activate.

This commit is contained in:
jendave
2011-08-06 13:02:53 +00:00
parent 79293095d5
commit 74063f5895
4 changed files with 6 additions and 4 deletions

View File

@@ -2739,6 +2739,7 @@ public class GameAction {
}//isAttached(Card c)
public boolean playCard(Card c) {
// this can only be called by the Human
HashMap<String, SpellAbility> map = new HashMap<String, SpellAbility>();
SpellAbility[] abilities = canPlaySpellAbility(c.getSpellAbility());
ArrayList<String> choices = new ArrayList<String>();
@@ -2748,8 +2749,8 @@ public class GameAction {
for(SpellAbility sa:abilities) {
// for uncastables like lotus bloom, check if manaCost is blank
sa.setActivatingPlayer(AllZone.HumanPlayer);
if(sa.canPlay() && (!sa.isSpell() || !sa.getManaCost().equals(""))) {
sa.setActivatingPlayer(c.getController());
choices.add(sa.toString());
map.put(sa.toString(), sa);
}