- Fixed the Wall of Reverence bug. It appears that the AI was targeting the first creature to come into play:

CardListUtil.sortAttack(validTargets);
Card c = creats.get(0);

rather than the creature with the highest power:

Card c = validTargets.get(0);
This commit is contained in:
jendave
2011-08-06 05:48:36 +00:00
parent 38c00e879c
commit e2ab0b4eab

View File

@@ -3608,7 +3608,8 @@ public class GameActionUtil {
else//computer
{
CardListUtil.sortAttack(validTargets);
Card c = creats.get(0);
Card c = validTargets.get(0);
// Card c = creats.get(0);
if (c != null) {
int power = c.getNetAttack();
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
@@ -3617,11 +3618,14 @@ public class GameActionUtil {
}
} // resolve
}; // ability
ability.setStackDescription("Wall of Reverence - "
+ player + " gains life equal to target creature's power.");
StringBuffer sb = new StringBuffer();
sb.append("Wall of Reverence - ").append(player).append(" gains life equal to target creature's power.");
ability.setStackDescription(sb.toString());
// ability.setStackDescription("Wall of Reverence - "
// + player + " gains life equal to target creature's power.");
AllZone.Stack.add(ability);
}
}
}//endOfTurn_Wall_Of_Reverence()
public static void endOfTurn_Predatory_Advantage()
{