CostAdjustment: use RaiseCost already but check for Cost parameter

This commit is contained in:
Hanmac
2016-07-25 12:43:35 +00:00
parent f24d6cb86b
commit 2fe1278a85

View File

@@ -54,7 +54,7 @@ public class CostAdjustment {
// Sort abilities to apply them in proper order
for (Card c : cardsOnBattlefield) {
for (final StaticAbility stAb : c.getStaticAbilities()) {
if (stAb.getMapParams().get("Mode").equals("RaiseCost2")) {
if (stAb.getMapParams().get("Mode").equals("RaiseCost") && stAb.getMapParams().containsKey("Cost")) {
raiseAbilities.add(stAb);
}
}