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:
elcnesh
2014-06-25 10:07:23 +00:00
parent 4eca4decac
commit 48086b30b7
9 changed files with 52 additions and 16 deletions

View File

@@ -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)) {