mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Added Loxodon Peacekeeper
This commit is contained in:
@@ -63,6 +63,8 @@ public class ChoosePlayerEffect extends SpellAbilityEffect {
|
||||
System.out.println("No good curse choices. Picking first available: " + choices.get(0));
|
||||
card.setChosenPlayer(choices.get(0));
|
||||
}
|
||||
} else if ("Pump".equals(sa.getParam("AILogic"))) {
|
||||
card.setChosenPlayer(choices.contains(p) ? p : choices.get(0));
|
||||
} else {
|
||||
card.setChosenPlayer(p);
|
||||
}
|
||||
|
||||
@@ -2521,6 +2521,23 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (property.startsWith("withLowest")) {
|
||||
if (property.substring(10).equals("Life")) {
|
||||
int lowestLife = 1000;
|
||||
List<Player> lowestlifep = new ArrayList<Player>();
|
||||
for (final Player p : Singletons.getModel().getGame().getPlayers()) {
|
||||
if (p.getLife() == lowestLife) {
|
||||
lowestlifep.add(p);
|
||||
} else if (p.getLife() < lowestLife) {
|
||||
lowestLife = p.getLife();
|
||||
lowestlifep.clear();
|
||||
lowestlifep.add(p);
|
||||
}
|
||||
}
|
||||
if (!lowestlifep.contains(this)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user