mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Oathbreaker 1 vs 1 - fixed that starting player draws a card like multiplayer games;
This commit is contained in:
parent
6316f40914
commit
0f2eb4dd58
2 changed files with 11 additions and 7 deletions
|
@ -5,6 +5,8 @@ import mage.constants.RangeOfInfluence;
|
|||
import mage.game.match.MatchType;
|
||||
import mage.game.mulligan.Mulligan;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
|
@ -12,6 +14,7 @@ public class OathbreakerDuel extends OathbreakerFreeForAll {
|
|||
|
||||
public OathbreakerDuel(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan, int startLife) {
|
||||
super(attackOption, range, mulligan, startLife);
|
||||
this.startingPlayerSkipsDraw = true;
|
||||
}
|
||||
|
||||
public OathbreakerDuel(final OathbreakerDuel game) {
|
||||
|
@ -33,4 +36,11 @@ public class OathbreakerDuel extends OathbreakerFreeForAll {
|
|||
return new OathbreakerDuel(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void init(UUID choosingPlayerId) {
|
||||
super.init(choosingPlayerId);
|
||||
|
||||
startingPlayerSkipsDraw = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public class OathbreakerFreeForAll extends GameCommanderImpl {
|
|||
|
||||
public OathbreakerFreeForAll(MultiplayerAttackOption attackOption, RangeOfInfluence range, Mulligan mulligan, int startLife) {
|
||||
super(attackOption, range, mulligan, startLife);
|
||||
this.startingPlayerSkipsDraw = false;
|
||||
}
|
||||
|
||||
public OathbreakerFreeForAll(final OathbreakerFreeForAll game) {
|
||||
|
@ -42,13 +43,6 @@ public class OathbreakerFreeForAll extends GameCommanderImpl {
|
|||
game.playerOathbreakers.forEach((key, value) -> this.playerOathbreakers.put(key, new HashSet<>(value)));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void init(UUID choosingPlayerId) {
|
||||
// init base commander game
|
||||
startingPlayerSkipsDraw = false;
|
||||
super.init(choosingPlayerId);
|
||||
}
|
||||
|
||||
private String getCommanderTypeName(Card commander) {
|
||||
return commander.isInstantOrSorcery() ? COMMANDER_NAME_SIGNATURE_SPELL : COMMANDER_NAME_OATHBREAKER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue