RememberDestroyed parameter added to Destroy AF (was only available to DestroyAll previously)

Added Kaervek's Purge
Added Kalitas, Bloodchief of Ghet (and uncommented the relevant token image download link)
Ran Oracle and SetInfo scripts
This commit is contained in:
moomarc
2012-01-25 11:22:53 +00:00
parent 1ff5420145
commit b2dfe22ef7
6 changed files with 45 additions and 1 deletions

View File

@@ -512,6 +512,12 @@ public class AbilityFactoryDestroy {
*/
private static void destroyResolve(final AbilityFactory af, final SpellAbility sa) {
final HashMap<String, String> params = af.getMapParams();
final Card card = sa.getSourceCard();
final boolean remDestroyed = params.containsKey("RememberDestroyed");
if (remDestroyed) {
card.clearRemembered();
}
final boolean noRegen = params.containsKey("NoRegen");
final boolean sac = params.containsKey("Sacrifice");
@@ -541,6 +547,8 @@ public class AbilityFactoryDestroy {
AllZone.getGameAction().destroyNoRegeneration(tgtC);
} else {
AllZone.getGameAction().destroy(tgtC);
} if (remDestroyed) {
card.addRemembered(tgtC);
}
}
}
@@ -553,6 +561,8 @@ public class AbilityFactoryDestroy {
AllZone.getGameAction().destroyNoRegeneration(unTgtC);
} else {
AllZone.getGameAction().destroy(unTgtC);
} if (remDestroyed) {
card.addRemembered(unTgtC);
}
}
}