mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
fix [CLB] Baba Lysaga counting of card types dynamically (#10796)
This commit is contained in:
parent
accb7c63bf
commit
95deeafa86
3 changed files with 102 additions and 15 deletions
|
|
@ -60,7 +60,7 @@ public class SacrificeTargetCost extends CostImpl implements SacrificeCost {
|
|||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
permanents.add(permanent.copy());
|
||||
addSacrificeTarget(game, permanent);
|
||||
paid |= permanent.sacrifice(source, game);
|
||||
}
|
||||
if (!paid && targets.get(0).getNumberOfTargets() == 0) {
|
||||
|
|
@ -70,6 +70,10 @@ public class SacrificeTargetCost extends CostImpl implements SacrificeCost {
|
|||
return paid;
|
||||
}
|
||||
|
||||
protected void addSacrificeTarget(Game game, Permanent permanent) {
|
||||
permanents.add(permanent.copy());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPay(Ability ability, Ability source, UUID controllerId, Game game) {
|
||||
UUID activator = controllerId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue