mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
* Iona, Shiel of Emeria - Added choice information to card tooltip.
This commit is contained in:
parent
253bdd5d5d
commit
73885ab01d
4 changed files with 26 additions and 18 deletions
|
|
@ -1307,6 +1307,9 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
|
|||
@Override
|
||||
public int getAmount(int min, int max, String message, Game game) {
|
||||
log.debug("getAmount");
|
||||
if (message.startsWith("Assign damage to ")) {
|
||||
return min;
|
||||
}
|
||||
//TODO: improve this
|
||||
if (min < max && min == 0) {
|
||||
return new Random().nextInt(max+1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue