mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
added Enchanted keyword to calculateAmount
This commit is contained in:
@@ -1658,6 +1658,16 @@ public class AbilityFactory {
|
||||
list.add(AllZoneUtil.getCardState(c));
|
||||
}
|
||||
|
||||
return CardFactoryUtil.handlePaid(list, calcX[1], card) * multiplier;
|
||||
} else if (calcX[0].startsWith("Enchanted")) {
|
||||
// Add whole Imprinted list to handlePaid
|
||||
final CardList list = new CardList();
|
||||
if (card.isEnchanting()) {
|
||||
Object o = card.getEnchanting();
|
||||
if (o instanceof Card) {
|
||||
list.add(AllZoneUtil.getCardState((Card) o));
|
||||
}
|
||||
}
|
||||
return CardFactoryUtil.handlePaid(list, calcX[1], card) * multiplier;
|
||||
} else if (ability != null) {
|
||||
// Player attribute counting
|
||||
|
||||
Reference in New Issue
Block a user