mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fix for Sanguine Praetor (calculateAmount needs to happen before getValidCards() is called. Solution isn't great, but it is functional.
This commit is contained in:
@@ -482,6 +482,10 @@ public class AbilityFactory_Destroy {
|
|||||||
if(params.containsKey("ValidCards"))
|
if(params.containsKey("ValidCards"))
|
||||||
Valid = params.get("ValidCards");
|
Valid = params.get("ValidCards");
|
||||||
|
|
||||||
|
// Ugh. If calculateAmount needs to be called with DestroyAll it _needs_ to use the X variable
|
||||||
|
// We really need a better solution to this
|
||||||
|
if (Valid.contains("X"))
|
||||||
|
Valid = Valid.replace("X", Integer.toString(AbilityFactory.calculateAmount(card, "X", sa)));
|
||||||
|
|
||||||
CardList list = AllZoneUtil.getCardsInPlay();
|
CardList list = AllZoneUtil.getCardsInPlay();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user