- Added Dark Sphere by squee1968.

This commit is contained in:
Sloth
2013-06-23 13:32:57 +00:00
parent 4f159471d7
commit 9c66737813
3 changed files with 14 additions and 0 deletions

View File

@@ -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")));
}