mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- For the purpose of moving an equipment, the AI considers a creature it no longer controls as "useless" for the purpose of retaining an equipment on it.
This commit is contained in:
@@ -1072,7 +1072,8 @@ public class AttachAi extends SpellAbilityAi {
|
||||
return null;
|
||||
}
|
||||
|
||||
boolean uselessCreature = isUselessCreature(aiPlayer, attachSource.getEquipping());
|
||||
boolean dontControl = !aiPlayer.equals(attachSource.getEquipping().getController());
|
||||
boolean uselessCreature = isUselessCreature(aiPlayer, attachSource.getEquipping()) || dontControl;
|
||||
|
||||
if (aic.getProperty(AiProps.MOVE_EQUIPMENT_TO_BETTER_CREATURES).equals("never")) {
|
||||
// Do not equip other creatures if the AI profile does not allow moving equipment around
|
||||
|
||||
Reference in New Issue
Block a user