mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- JOU: Added Battlefield Thaumaturge and Crystalline Nautilus
This commit is contained in:
@@ -393,14 +393,8 @@ public class ManaCostAdjustment {
|
|||||||
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
|
if (params.containsKey("AffectedZone") && !card.isInZone(ZoneType.smartValueOf(params.get("AffectedZone")))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int value = 0;
|
// CardFactory.xCout() cannot calculate cards like Battlefield Thaumaturge
|
||||||
if ("X".equals(amount)) {
|
int value = AbilityUtils.calculateAmount(hostCard, amount, sa);
|
||||||
value = CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X"));
|
|
||||||
} else if ("AffectedX".equals(amount)) {
|
|
||||||
value = CardFactoryUtil.xCount(card, hostCard.getSVar("AffectedX"));
|
|
||||||
} else {
|
|
||||||
value = Integer.valueOf(amount);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!params.containsKey("Color")) {
|
if (!params.containsKey("Color")) {
|
||||||
manaCost.decreaseColorlessMana(value);
|
manaCost.decreaseColorlessMana(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user