mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 03:39:54 -08:00
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
|
|
@ -67,7 +67,7 @@ class TaintedPactEffect extends OneShotEffect{
|
|||
Card card = player.getLibrary().getFromTop(game);
|
||||
if (card != null) {
|
||||
|
||||
card.moveToExile(null, null, source.getSourceId(), game);
|
||||
card.moveToExile(null, null, source, game);
|
||||
// Checks if there was already exiled a card with the same name
|
||||
if (names.contains(card.getName())) {
|
||||
break;
|
||||
|
|
@ -75,7 +75,7 @@ class TaintedPactEffect extends OneShotEffect{
|
|||
names.add(card.getName());
|
||||
if (player.chooseUse(outcome, "Put " + card.getName() + " into your hand?", source, game)) {
|
||||
//Adds the current card to hand if it is chosen.
|
||||
card.moveToZone(Zone.HAND, source.getSourceId(), game, true);
|
||||
card.moveToZone(Zone.HAND, source, game, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue