Prevent passing game object to client when adding card to field

This commit is contained in:
drdev
2014-10-13 02:29:42 +00:00
parent f0e75ae9bc
commit d3c3e6fe43
2 changed files with 1 additions and 2 deletions

View File

@@ -6271,7 +6271,6 @@ public class Card extends GameEntity implements Comparable<Card>, IIdentifiable
public List<SpellAbility> getAllPossibleAbilities(Player player, boolean removeUnplayable) {
// this can only be called by the Human
final List<SpellAbility> abilities = new ArrayList<SpellAbility>();
for (SpellAbility sa : getSpellAbilities()) {
//add alternative costs as additional spell abilities

View File

@@ -1744,7 +1744,7 @@ public class PlayerControllerHuman extends PlayerController {
}
public void addCardToBattlefield() {
final Player p = SGuiChoose.oneOrNone("Put card in play for which player?", (FCollection<Player>)game.getPlayers());
final Player p = Player.get(SGuiChoose.oneOrNone("Put card in play for which player?", PlayerView.getCollection(game.getPlayers())));
if (p == null) {
return;
}