mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
SpecialCardAi getParamOrDefault for ChangeNum to match Effect
This commit is contained in:
@@ -709,7 +709,8 @@ public class SpecialCardAi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int changeNum = AbilityUtils.calculateAmount(sa.getHostCard(), sa.getParam("ChangeNum"), sa);
|
int changeNum = AbilityUtils.calculateAmount(sa.getHostCard(),
|
||||||
|
sa.getParamOrDefault("ChangeNum", "1"), sa);
|
||||||
CardCollection lib = CardLists.filter(ai.getCardsIn(ZoneType.Library),
|
CardCollection lib = CardLists.filter(ai.getCardsIn(ZoneType.Library),
|
||||||
Predicates.not(CardPredicates.nameEquals(sa.getHostCard().getName())));
|
Predicates.not(CardPredicates.nameEquals(sa.getHostCard().getName())));
|
||||||
Collections.sort(lib, CardLists.CmcComparatorInv);
|
Collections.sort(lib, CardLists.CmcComparatorInv);
|
||||||
|
|||||||
Reference in New Issue
Block a user