forked from MagicBane/Server
finished modifications for guards
This commit is contained in:
@@ -914,4 +914,21 @@ public class ItemBase {
|
||||
public void setAutoID(boolean autoID) {
|
||||
this.autoID = autoID;
|
||||
}
|
||||
|
||||
public boolean isArmor(){
|
||||
|
||||
if(this.isHeavyArmor())
|
||||
return true;
|
||||
|
||||
if(this.isMediumArmor())
|
||||
return true;
|
||||
|
||||
if(this.isLightArmor())
|
||||
return true;
|
||||
|
||||
if(this.isClothArmor())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user