forked from External/mage
Updated implementation of Unpredictable Cyclone (#6423)
* updated implementation of Unpredictable Cyclone, refactored drawCard method * fixed another small implementation error * added test for Unpredictable Cyclone * updated Unpredictable Cyclone test
This commit is contained in:
parent
80b7f8493b
commit
378dfbf89a
279 changed files with 465 additions and 378 deletions
|
|
@ -5,6 +5,8 @@ import mage.actions.score.ArtificialScoringSystem;
|
|||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Lose game action.
|
||||
*
|
||||
|
|
@ -26,7 +28,7 @@ public class MageLoseGameAction extends MageAction {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int doAction(final Game game) {
|
||||
public int doAction(UUID sourceId, final Game game) {
|
||||
oldLosingPlayer = game.getLosingPlayer();
|
||||
if (oldLosingPlayer == null && player.canLose(game)) {
|
||||
setScore(player, ArtificialScoringSystem.inst.getLoseGameScore(game));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue