mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge
This commit is contained in:
commit
77936865c3
2 changed files with 8 additions and 2 deletions
|
@ -7,3 +7,4 @@ syntax: regexp
|
|||
target
|
||||
nbactions.xml
|
||||
glob:Mage.Client/cheat.dck
|
||||
glob:Mage.Client/test.dck
|
||||
|
|
|
@ -55,8 +55,13 @@ public class DiscardSourceCost extends CostImpl<DiscardSourceCost> {
|
|||
@Override
|
||||
public boolean pay(Game game, UUID sourceId, UUID controllerId, boolean noMana) {
|
||||
Player player = game.getPlayer(controllerId);
|
||||
Card card = player.getHand().get(sourceId, game);
|
||||
return player.discard(card, null, game);
|
||||
if (player != null) {
|
||||
Card card = player.getHand().get(sourceId, game);
|
||||
if (card != null) {
|
||||
paid = player.discard(card, null, game);
|
||||
}
|
||||
}
|
||||
return paid;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue