mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Start removing logic that depends on a single opponent, as this (naturally) doesn't work in multiplayer games.
'OppLifeTotal' is now removed, and started removing 'OppPoisonCounters'.
This commit is contained in:
@@ -392,8 +392,13 @@ public class DamageDealAi extends DamageAiBase {
|
||||
}
|
||||
continue;
|
||||
}
|
||||
} else if ("OppAtTenLife".equals(sa.getParam("AILogic"))) {
|
||||
for (final Player p : ai.getOpponents()) {
|
||||
if (sa.canTarget(p) && p.getLife() == 10 && tcs.getNumTargeted() < tgt.getMaxTargets(source, sa)) {
|
||||
tcs.add(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Improve Damage, we shouldn't just target the player just
|
||||
// because we can
|
||||
else if (sa.canTarget(enemy)) {
|
||||
|
||||
Reference in New Issue
Block a user