- Integrating the zone restriction check as a mandatory part of SpellAbility#canTarget.

This commit is contained in:
Agetian
2017-06-27 16:35:49 +00:00
parent 934683f4d5
commit 247f8f5be1
3 changed files with 10 additions and 18 deletions

View File

@@ -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;
}