forked from External/mage
Added new option for mana payment handling of mana already in the mana pool. Reworked the battlefield context menu a bit.
This commit is contained in:
parent
8066fe911c
commit
907ec7abb0
11 changed files with 263 additions and 139 deletions
|
|
@ -1124,12 +1124,20 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
|
||||
|
||||
@Override
|
||||
public synchronized void setManaPoolMode(UUID playerId, boolean autoPayment) {
|
||||
public synchronized void setManaPaymentMode(UUID playerId, boolean autoPayment) {
|
||||
Player player = state.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
player.getManaPool().setAutoPayment(autoPayment);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void setManaPaymentModeRestricted(UUID playerId, boolean autoPaymentRestricted) {
|
||||
Player player = state.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
player.getManaPool().setAutoPaymentRestricted(autoPaymentRestricted);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playPriority(UUID activePlayerId, boolean resuming) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue