mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[ELD] Fix Once and Future. Remove unused Player.putInHand method
This commit is contained in:
parent
f5f17cc73e
commit
7c1e823deb
5 changed files with 18 additions and 52 deletions
|
|
@ -696,26 +696,6 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't use this in normal card code, it's for more internal use. Always
|
||||
* use the [Player].moveCards methods if possible for card movement of card
|
||||
* code.
|
||||
*
|
||||
* @param card
|
||||
* @param game
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean putInHand(Card card, Game game) {
|
||||
if (card.isOwnedBy(playerId)) {
|
||||
card.setZone(Zone.HAND, game);
|
||||
this.hand.add(card);
|
||||
} else {
|
||||
return game.getPlayer(card.getOwnerId()).putInHand(card, game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeFromHand(Card card, Game game) {
|
||||
return hand.remove(card.getId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue