mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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:
|
// check for exalted:
|
||||||
if (list.size() == 1) {
|
if (list.size() == 1) {
|
||||||
final Player attackingPlayer = AllZone.getCombat().getAttackingPlayer();
|
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);
|
if (exaltedMagnitude > 0) {
|
||||||
exalted = exalted.getKeyword("Exalted");
|
CombatUtil.executeExaltedAbility(list.get(0), exaltedMagnitude);
|
||||||
|
|
||||||
if (exalted.size() > 0) {
|
|
||||||
CombatUtil.executeExaltedAbility(list.get(0), exalted.size());
|
|
||||||
// Make sure exalted effects get applied only once per combat
|
// Make sure exalted effects get applied only once per combat
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user