mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Use ComputerUtilAbility.isFullyTargetable() and add more tests.
This commit is contained in:
@@ -1655,16 +1655,6 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
return targetRestrictions != null;
|
||||
}
|
||||
|
||||
public boolean hasLegalTargets() {
|
||||
if (!isTargetNumberValid() && getTargetRestrictions().getNumCandidates(this, true) == 0) {
|
||||
return false;
|
||||
}
|
||||
if (!StaticAbilityMustTarget.meetsMustTargetRestriction(this)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public TargetRestrictions getTargetRestrictions() {
|
||||
return targetRestrictions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user