mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed AI using Elven Rite.
This commit is contained in:
@@ -129,13 +129,15 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
// TODO is this good enough? for up to amounts?
|
// TODO is this good enough? for up to amounts?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (divided) {
|
|
||||||
abTgt.addDividedAllocation(choice, amount);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
list.remove(choice);
|
list.remove(choice);
|
||||||
abTgt.addTarget(choice);
|
abTgt.addTarget(choice);
|
||||||
|
|
||||||
|
if (divided) {
|
||||||
|
abTgt.addDividedAllocation(choice, amount);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getSourceCard(), sa.getParam("Defined"), sa);
|
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getSourceCard(), sa.getParam("Defined"), sa);
|
||||||
@@ -223,12 +225,13 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
// TODO is this good enough? for up to amounts?
|
// TODO is this good enough? for up to amounts?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (divided) {
|
|
||||||
abTgt.addDividedAllocation(choice, amount);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
list.remove(choice);
|
list.remove(choice);
|
||||||
abTgt.addTarget(choice);
|
abTgt.addTarget(choice);
|
||||||
|
if (divided) {
|
||||||
|
abTgt.addDividedAllocation(choice, amount);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user