forked from External/mage
Fix Angel of Jubilation.
The Angel now properly only restricts the sacrifice of creatures.
This commit is contained in:
parent
e7a2277252
commit
43205b6f46
11 changed files with 246 additions and 38 deletions
|
|
@ -59,11 +59,9 @@ public class SacrificeSourceCost extends CostImpl {
|
|||
|
||||
@Override
|
||||
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
||||
if (!game.getPlayer(controllerId).canPaySacrificeCost()) {
|
||||
return false;
|
||||
}
|
||||
Permanent permanent = game.getPermanent(sourceId);
|
||||
return permanent != null;
|
||||
|
||||
return permanent != null && game.getPlayer(controllerId).canPaySacrificeCost(permanent, sourceId, controllerId, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue