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
|
|
@ -673,16 +673,16 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
}
|
||||
|
||||
@Override
|
||||
public int drawCards(int num, Game game) {
|
||||
public int drawCards(int num, UUID sourceId, Game game) {
|
||||
if (num > 0) {
|
||||
return game.doAction(new MageDrawAction(this, num, null));
|
||||
return game.doAction(new MageDrawAction(this, num, null), sourceId);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int drawCards(int num, Game game, List<UUID> appliedEffects) {
|
||||
return game.doAction(new MageDrawAction(this, num, appliedEffects));
|
||||
public int drawCards(int num, UUID sourceId, Game game, List<UUID> appliedEffects) {
|
||||
return game.doAction(new MageDrawAction(this, num, appliedEffects), sourceId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue