Browse Source

defense bug fix

combat-2
FatBoy-DOTC 8 months ago
parent
commit
ebf7130b63
  1. 4
      src/engine/objects/AbstractCharacter.java

4
src/engine/objects/AbstractCharacter.java

@ -956,6 +956,10 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if (armor.template.item_skill_used.isEmpty()) if (armor.template.item_skill_used.isEmpty())
return ib.item_defense_rating; return ib.item_defense_rating;
if(armor.template.item_skill_used.length() < 1){
return ib.item_defense_rating;
}
CharacterSkill armorSkill = playerCharacter.skills.get(armor.template.item_skill_used); CharacterSkill armorSkill = playerCharacter.skills.get(armor.template.item_skill_used);
if (armorSkill == null) { if (armorSkill == null) {
Logger.error("Player " + playerCharacter.getObjectUUID() Logger.error("Player " + playerCharacter.getObjectUUID()

Loading…
Cancel
Save