mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Check controller of a mana ability in canPlay so Humans can't tap AIs land
This commit is contained in:
@@ -349,7 +349,11 @@ abstract public class Ability_Mana extends SpellAbility implements java.io.Seria
|
|||||||
@Override
|
@Override
|
||||||
public boolean canPlay() {
|
public boolean canPlay() {
|
||||||
Card card = getSourceCard();
|
Card card = getSourceCard();
|
||||||
if(card.isCreature() == true) {
|
|
||||||
|
if (card.getController().isComputer())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if(card.isCreature()) {
|
||||||
|
|
||||||
CardList Silence = AllZoneUtil.getPlayerCardsInPlay(card.getController().getOpponent());
|
CardList Silence = AllZoneUtil.getPlayerCardsInPlay(card.getController().getOpponent());
|
||||||
Silence = Silence.getName("Linvala, Keeper of Silence");
|
Silence = Silence.getName("Linvala, Keeper of Silence");
|
||||||
|
|||||||
Reference in New Issue
Block a user