mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- clean up code a little
This commit is contained in:
@@ -401,12 +401,11 @@ public class PumpEffect extends SpellAbilityEffect {
|
||||
continue;
|
||||
}
|
||||
|
||||
// substitute CardManaCost
|
||||
// substitute specific tgtC mana cost for keyword placeholder CardManaCost
|
||||
if (sa.getParam("KW").contains("CardManaCost")) {
|
||||
String defined = "CardManaCost";
|
||||
String replaced = tgtC.getManaCost().getShortString();
|
||||
String cost = tgtC.getManaCost().getShortString();
|
||||
for (int i = 0; i < keywords.size(); i++) {
|
||||
keywords.set(i, TextUtil.fastReplace(keywords.get(i), defined, replaced));
|
||||
keywords.set(i, TextUtil.fastReplace(keywords.get(i), "CardManaCost", cost));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user