mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Integrating the zone restriction check as a mandatory part of SpellAbility#canTarget.
This commit is contained in:
@@ -63,7 +63,7 @@ public class ChangeTargetsAi extends SpellAbilityAi {
|
||||
// make sure not to redirect our own abilities
|
||||
return false;
|
||||
}
|
||||
if (!topSa.canTarget(sa.getHostCard(), true)) {
|
||||
if (!topSa.canTarget(sa.getHostCard())) {
|
||||
// don't try targeting it if we can't legally target the host card with it in the first place
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user