mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
remove check, add note here since it occurs only on mobile GUI
This commit is contained in:
@@ -286,21 +286,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (GuiBase.getInterface().isLibgdxPort()) { //todo add better check
|
//FIXME - on mobile gui it allows the card to cast from opponent hands issue #2127, investigate where the bug occurs before this method is called
|
||||||
if (hostCard.isInZone(ZoneType.Hand) && !hostCard.getController().equals(player)) {
|
|
||||||
boolean noPermission = true;
|
|
||||||
for (CardPlayOption o : hostCard.mayPlay(player)) {
|
|
||||||
if (o.grantsZonePermissions()) {
|
|
||||||
noPermission = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (noPermission) {
|
|
||||||
getGui().showZoom(hostCard.getView());
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
spellViewCache = SpellAbilityView.getMap(abilities);
|
spellViewCache = SpellAbilityView.getMap(abilities);
|
||||||
final SpellAbilityView resultView = getGui().getAbilityToPlay(CardView.get(hostCard),
|
final SpellAbilityView resultView = getGui().getAbilityToPlay(CardView.get(hostCard),
|
||||||
Lists.newArrayList(spellViewCache.keySet()), triggerEvent);
|
Lists.newArrayList(spellViewCache.keySet()), triggerEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user