mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed multiple instances of Exalted on a single card not working.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user