- 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:
Agetian
2016-07-15 15:44:01 +00:00
parent da52430567
commit a963bf41f4

View File

@@ -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