mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Added Dark Sphere by squee1968.
This commit is contained in:
@@ -96,6 +96,8 @@ public class StaticAbilityPreventDamage {
|
||||
restDamage = restDamage - Integer.parseInt(params.get("Amount"));
|
||||
} else if (params.get("Amount").matches("HalfUp")) {
|
||||
restDamage = restDamage - (int) (Math.ceil(restDamage / 2.0));
|
||||
} else if (params.get("Amount").matches("HalfDown")) {
|
||||
restDamage = restDamage - (int) (Math.floor(restDamage / 2.0));
|
||||
} else {
|
||||
restDamage = restDamage - CardFactoryUtil.xCount(hostCard, hostCard.getSVar(params.get("Amount")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user