Browse Source

Fix broken hasSkill implementation

master
Chris Smith 15 years ago
parent
commit
b6e5b143bd
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/uk/co/md87/evetool/api/wrappers/CharacterSheet.java

+ 2
- 2
src/uk/co/md87/evetool/api/wrappers/CharacterSheet.java View File

@@ -246,8 +246,8 @@ public class CharacterSheet {
246 246
     }
247 247
 
248 248
     public boolean hasSkill(final SkillRequirement req) {
249
-        return skills.containsKey(req.getSkillId()) ||
250
-                skills.get(req.getSkillId()).getLevel() < req.getRequiredLevel();
249
+        return skills.containsKey(req.getSkillId()) &&
250
+                skills.get(req.getSkillId()).getLevel() >= req.getRequiredLevel();
251 251
     }
252 252
 
253 253
     public boolean hasSkills(final RequirementsList reqs) {

Loading…
Cancel
Save