From 06ede80435f4b787a8bf5bbe23042d874e29a96e Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 1 May 2012 23:51:49 +0200 Subject: [PATCH] Fixed Iron Grip working reversely --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index b2352cd37..02702715f 100644 --- a/Changelog.txt +++ b/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 diff --git a/src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java b/src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java index 844da6159..7f83f37ee 100644 --- a/src/main/java/com/gmail/nossr50/skills/combat/Unarmed.java +++ b/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);