mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
support "CardManaCost" in Pump keywords
This commit is contained in:
@@ -401,6 +401,15 @@ public class PumpEffect extends SpellAbilityEffect {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// substitute CardManaCost
|
||||||
|
if (sa.getParam("KW").contains("CardManaCost")) {
|
||||||
|
String defined = "CardManaCost";
|
||||||
|
String replaced = tgtC.getManaCost().getShortString();
|
||||||
|
for (int i = 0; i < keywords.size(); i++) {
|
||||||
|
keywords.set(i, TextUtil.fastReplace(keywords.get(i), defined, replaced));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
applyPump(sa, tgtC, a, d, keywords, timestamp);
|
applyPump(sa, tgtC, a, d, keywords, timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user