forked from External/mage
Refactor: replaced sourceId by source and introduced source param in some methods;
This commit is contained in:
parent
2bb472607b
commit
db239a1055
3205 changed files with 7080 additions and 6795 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package mage.actions;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.actions.impl.MageAction;
|
||||
import mage.actions.score.ArtificialScoringSystem;
|
||||
import mage.game.Game;
|
||||
|
|
@ -28,7 +29,7 @@ public class MageLoseGameAction extends MageAction {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int doAction(UUID sourceId, final Game game) {
|
||||
public int doAction(Ability source, 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