From 84dae260689911e514387a11928781bcbab8fbaf Mon Sep 17 00:00:00 2001 From: melvin Date: Mon, 8 Jul 2013 11:25:23 +0800 Subject: [PATCH] added isPreventable method --- src/magic/model/MagicDamage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/magic/model/MagicDamage.java b/src/magic/model/MagicDamage.java index 39e68fbb5f..b0138f068e 100644 --- a/src/magic/model/MagicDamage.java +++ b/src/magic/model/MagicDamage.java @@ -72,6 +72,10 @@ public class MagicDamage { public void setUnpreventable() { unpreventable=true; } + + public boolean isPreventable() { + return !unpreventable; + } public boolean isUnpreventable() { return unpreventable;