- Fixed multiple instances of Exalted on a single card not working.

This commit is contained in:
Sloth
2012-07-08 08:33:36 +00:00
parent 9c4cfe7f8d
commit fc3339f1fa

View File

@@ -309,12 +309,13 @@ public class PhaseUtil {
// check for exalted:
if (list.size() == 1) {
final Player attackingPlayer = AllZone.getCombat().getAttackingPlayer();
int exaltedMagnitude = 0;
for (Card card : attackingPlayer.getCardsIn(ZoneType.Battlefield)) {
exaltedMagnitude += card.getKeywordAmount("Exalted");
}
CardList exalted = attackingPlayer.getCardsIn(ZoneType.Battlefield);
exalted = exalted.getKeyword("Exalted");
if (exalted.size() > 0) {
CombatUtil.executeExaltedAbility(list.get(0), exalted.size());
if (exaltedMagnitude > 0) {
CombatUtil.executeExaltedAbility(list.get(0), exaltedMagnitude);
// Make sure exalted effects get applied only once per combat
}