mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user