- Allow AI priority modification (may be useful for more cards, will update later).

This commit is contained in:
Agetian
2018-12-04 10:27:11 +03:00
parent 0921fa3e67
commit de3d60e9c5
3 changed files with 7 additions and 0 deletions

View File

@@ -881,6 +881,9 @@ public class AiController {
if (source.isCreature()) {
p += 1;
}
if (source.hasSVar("AIPriorityModifier")) {
p += Integer.parseInt(source.getSVar("AIPriorityModifier"));
}
// don't play equipments before having any creatures
if (source.isEquipment() && noCreatures) {
p -= 9;