mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- AI shouldn't try to transform creatures that can't transform
This commit is contained in:
@@ -25,7 +25,7 @@ public class SetStateAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sa.getTargetRestrictions() == null && "Transform".equals(sa.getParam("Mode"))) {
|
if (sa.getTargetRestrictions() == null && "Transform".equals(sa.getParam("Mode"))) {
|
||||||
return true;
|
return !source.hasKeyword("CARDNAME can't transform");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user