Merge pull request #5527 from magefree/coinFlips

Fixing coin flip implementation (WIP - Do Not Merge)
This commit is contained in:
Evan Kranzler 2019-01-16 11:44:01 -05:00 committed by GitHub
commit 63fb5964d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 275 additions and 161 deletions

View file

@ -2609,13 +2609,13 @@ public class TestPlayer implements Player {
}
@Override
public boolean flipCoin(Game game) {
return computerPlayer.flipCoin(game);
public boolean flipCoin(Ability source, Game game, boolean winnable) {
return computerPlayer.flipCoin(source, game, true);
}
@Override
public boolean flipCoin(Game game, ArrayList<UUID> appliedEffects) {
return computerPlayer.flipCoin(game, appliedEffects);
public boolean flipCoin(Ability source, Game game, boolean winnable, ArrayList<UUID> appliedEffects) {
return computerPlayer.flipCoin(source, game, true, appliedEffects);
}
@Override

View file

@ -642,12 +642,12 @@ public class PlayerStub implements Player {
}
@Override
public boolean flipCoin(Game game) {
public boolean flipCoin(Ability source, Game game, boolean winnable) {
return false;
}
@Override
public boolean flipCoin(Game game, ArrayList<UUID> appliedEffects) {
public boolean flipCoin(Ability source, Game game, boolean winnable, ArrayList<UUID> appliedEffects) {
return false;
}