forked from External/mage
Rework sacrifice effects to support "can't be sacrificed" (#11587)
* add TargetSacrifice and canBeSacrificed
* SacrificeTargetCost refactor, now uses TargetSacrifice, constructors simplified, subclasses aligned
* fix text errors introduced by refactor
* refactor SacrificeEffect, SacrificeAllEffect, SacrificeOpponentsEffect
* cleanup keyword abilities involving sacrifice
* fix a bunch of custom effect classes involving sacrifice
* fix test choices
* update Assault Suit implementation
* fix filter check arguments
* add documentation to refactored common classes
* [CLB] Implement Jon Irenicus, Shattered One
* implement "{this} can't be sacrificed"
* add tests for Assault Suit and Jon Irenicus
* refactor out PlayerToRightGainsControlOfSourceEffect
* implement [LTC] Hithlain Rope
* add choose hint to all TargetSacrifice
---------
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
Co-authored-by: PurpleCrowbar <26198472+PurpleCrowbar@users.noreply.github.com>
This commit is contained in:
parent
f28c5c4fc5
commit
9b3ff32a33
699 changed files with 1837 additions and 1619 deletions
|
|
@ -22,6 +22,7 @@ import mage.players.Player;
|
|||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
import mage.target.common.TargetDiscard;
|
||||
import mage.target.common.TargetSacrifice;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
@ -162,7 +163,7 @@ class OublietteEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class OublietteTarget extends TargetControlledPermanent {
|
||||
class OublietteTarget extends TargetSacrifice {
|
||||
|
||||
private static final CardTypeAssignment cardTypeAssigner = new CardTypeAssignment(
|
||||
CardType.ARTIFACT,
|
||||
|
|
@ -176,7 +177,7 @@ class OublietteTarget extends TargetControlledPermanent {
|
|||
}
|
||||
|
||||
OublietteTarget(int numTargets) {
|
||||
super(numTargets, numTargets, filter, true);
|
||||
super(numTargets, filter);
|
||||
}
|
||||
|
||||
private OublietteTarget(final OublietteTarget target) {
|
||||
|
|
@ -263,4 +264,3 @@ class SandfallCellEffect extends OneShotEffect {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue