fixed canTarget error and started to convert logging to log4j

This commit is contained in:
BetaSteward 2011-02-14 14:41:29 -05:00
parent c8fcc25ba2
commit 0c5261ce88
10 changed files with 137 additions and 141 deletions

View file

@ -280,7 +280,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
targets = threats(opponentId, ((FilterCreatureOrPlayer)t.getFilter()).getCreatureFilter(), game);
}
for (Permanent permanent: targets) {
if (((TargetPermanent)target).canTarget(playerId, permanent.getId(), source, game)) {
if (t.canTarget(playerId, permanent.getId(), source, game)) {
target.addTarget(permanent.getId(), source, game);
return true;
}