forked from External/mage
Fix ConditionalTargetAdjuster not allowing abilities/cards to be activated/cast when they should be
This commit is contained in:
parent
f42fc0f388
commit
9c52dfa785
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ import mage.target.Target;
|
|||
import mage.target.TargetCard;
|
||||
import mage.target.Targets;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.targetadjustment.ConditionalTargetAdjuster;
|
||||
import mage.target.targetadjustment.GenericTargetAdjuster;
|
||||
import mage.target.targetadjustment.TargetAdjuster;
|
||||
import mage.util.CardUtil;
|
||||
|
|
@ -1074,6 +1075,11 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
|
||||
protected static boolean canChooseTargetAbility(Ability ability, Modes modes, Game game, UUID controllerId) {
|
||||
if (ability.getTargetAdjuster() != null && ability.getTargetAdjuster() instanceof ConditionalTargetAdjuster){
|
||||
// ConditionalTargetAdjuster can sometimes make the target more permissive
|
||||
// So always treat it as satisfying target requirements
|
||||
return true;
|
||||
}
|
||||
int found = 0;
|
||||
for (Mode mode : modes.values()) {
|
||||
boolean validTargets = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue