added isPreventable method

master
melvin 2013-07-08 11:25:23 +08:00
parent 662aed1b43
commit 84dae26068
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ public class MagicDamage {
public void setUnpreventable() {
unpreventable=true;
}
public boolean isPreventable() {
return !unpreventable;
}
public boolean isUnpreventable() {
return unpreventable;