- Added an implementation comment.

This commit is contained in:
Agetian
2017-10-15 08:11:05 +00:00
parent b6ec9728d8
commit 7cbf5ff74e

View File

@@ -60,6 +60,8 @@ public class CounterAi extends SpellAbilityAi {
// might as well check for player's friendliness // might as well check for player's friendliness
return false; return false;
} }
// check if the top ability on the stack corresponds to the AI-specific targeting declaration, if provided
if (sa.hasParam("AITgts") && (topSA.getHostCard() == null if (sa.hasParam("AITgts") && (topSA.getHostCard() == null
|| !topSA.getHostCard().isValid(sa.getParam("AITgts"), sa.getActivatingPlayer(), source, sa))) { || !topSA.getHostCard().isValid(sa.getParam("AITgts"), sa.getActivatingPlayer(), source, sa))) {
return false; return false;