mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user