Refactor: replaced sourceId by source and introduced source param in some methods;

This commit is contained in:
Oleg Agafonov 2020-12-12 20:23:19 +04:00
parent 2bb472607b
commit db239a1055
3205 changed files with 7080 additions and 6795 deletions

View file

@ -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;
}
}