mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
make sure compy doesn't counter own spells with Deathgrip/Lifeforce.
This commit is contained in:
@@ -11868,7 +11868,8 @@ public class CardFactory implements NewConstants {
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
System.out.println("AI is pondering using "+cardName);
|
||||
return canPlay();
|
||||
SpellAbility sa = AllZone.Stack.peek();
|
||||
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -11904,7 +11905,8 @@ public class CardFactory implements NewConstants {
|
||||
@Override
|
||||
public boolean canPlayAI() {
|
||||
System.out.println("AI is pondering using "+cardName);
|
||||
return canPlay();
|
||||
SpellAbility sa = AllZone.Stack.peek();
|
||||
return canPlay() && sa.getSourceCard().getController().equals(AllZone.HumanPlayer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user