- Added a special AI logic to guild lands such that the AI does not bounce played guild lands back to hand with their own triggered ability.

This commit is contained in:
Agetian
2014-09-09 05:46:49 +00:00
parent 9725fd30ee
commit 38bd41cec6
11 changed files with 18 additions and 10 deletions

View File

@@ -1133,6 +1133,14 @@ public class ChangeZoneAi extends SpellAbilityAi {
if( fetchList.isEmpty() )
return null;
if (sa.hasParam("AILogic") && sa.getParam("AILogic").equals("NeverBounceItself")) {
Card source = sa.getHostCard();
if (fetchList.contains(source)) {
// For cards that should never be bounced back to hand with their own [e.g. triggered] abilities, such as guild lands.
fetchList.remove(source);
}
}
String type = sa.getParam("ChangeType");
if (type == null) {