- Prioritize mana rituals to try to maximize potential mana.

This commit is contained in:
Agetian
2017-01-23 17:29:39 +00:00
parent 6a2baaef71
commit 33dce1114b

View File

@@ -797,6 +797,11 @@ public class AiController {
p -= (((PlayerControllerAi)ai.getController()).getAi().getIntProperty(AiProps.PRIORITY_REDUCTION_FOR_STORM_SPELLS));
}
// try to cast mana ritual spells before casting spells to maximize potential mana
if ("ManaRitual".equals(sa.getParam("AILogic"))) {
p += 9;
}
return p;
}
};