- 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:
jendave
2011-08-06 17:18:05 +00:00
parent c0654e16a9
commit 64e96dd50f

View File

@@ -482,6 +482,10 @@ public class AbilityFactory_Destroy {
if(params.containsKey("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();