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
|
|
@ -50,12 +50,12 @@ public class EnterBattlefieldPayCostOrPutGraveyardEffect extends ReplacementEffe
|
|||
MageObject sourceObject = game.getObject(source.getSourceId());
|
||||
if (player != null && cost != null && sourceObject != null) {
|
||||
boolean replace = true;
|
||||
if (cost.canPay(source, source.getSourceId(), player.getId(), game)) {
|
||||
if (cost.canPay(source, source, player.getId(), game)) {
|
||||
if (player.chooseUse(outcome,
|
||||
cost.getText().substring(0, 1).toUpperCase(Locale.ENGLISH) + cost.getText().substring(1)
|
||||
+ "? (otherwise " + sourceObject.getLogName() + " is put into graveyard)", source, game)) {
|
||||
cost.clearPaid();
|
||||
replace = !cost.pay(source, game, source.getSourceId(), source.getControllerId(), false, null);
|
||||
replace = !cost.pay(source, game, source, source.getControllerId(), false, null);
|
||||
}
|
||||
}
|
||||
if (replace) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue