mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed The Abyss and similar cards.
This commit is contained in:
@@ -1636,9 +1636,14 @@ public abstract class SpellAbility {
|
|||||||
* @return a boolean.
|
* @return a boolean.
|
||||||
*/
|
*/
|
||||||
public final boolean canTarget(final GameEntity entity) {
|
public final boolean canTarget(final GameEntity entity) {
|
||||||
|
if (this.getTarget() == null) {
|
||||||
|
if (entity.canBeTargetedBy(this)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (entity.isValid(this.getTarget().getValidTgts(), this.getActivatingPlayer(), this.getSourceCard())
|
if (entity.isValid(this.getTarget().getValidTgts(), this.getActivatingPlayer(), this.getSourceCard())
|
||||||
&& (this.getTarget() == null || !this.getTarget().isUniqueTargets()
|
&& (!this.getTarget().isUniqueTargets() || !TargetSelection.getUniqueTargets(this).contains(entity))
|
||||||
|| !TargetSelection.getUniqueTargets(this).contains(entity))
|
|
||||||
&& entity.canBeTargetedBy(this)) {
|
&& entity.canBeTargetedBy(this)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user