Bladeren bron

Fixed Iron Grip working reversely

bm01 13 jaren geleden
bovenliggende
commit
06ede80435
2 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java

+ 1 - 0
Changelog.txt

@@ -38,6 +38,7 @@ Version 1.3.06
  + Added API functions for admin & party chat
  + Added Iron Grip skill to Unarmed which gives players an chance to keep from being disarmed.
  + Added some new languages to the locale files.
+ = Fixed Iron Grip working reversely
  = Fixed Green Thumb consuming 2 seeds instead of 1
  = Fixed exploit where you could teleport to yourself with PTP to prevent things like fall damage
  = Fixed NPE error with Metrics on startup

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java

@@ -54,7 +54,7 @@ public class Unarmed {
         ItemStack inHand = defender.getItemInHand();
 
         if (!inHand.getType().equals(Material.AIR)) {
-            if (random.nextInt(3000) <= skillCheck && ironGrip(defender, attacker)) {
+            if (random.nextInt(3000) <= skillCheck && !ironGrip(defender, attacker)) {
                 defender.sendMessage(LocaleLoader.getString("Skills.Disarmed"));
 
                 Misc.mcDropItem(defender.getLocation(), inHand);