Fixed Iron Grip working reversely

This commit is contained in:
bm01 2012-05-01 23:51:49 +02:00
parent dbc57060ee
commit 06ede80435
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -54,7 +54,7 @@ public class Unarmed {
ItemStack inHand = defender.getItemInHand(); ItemStack inHand = defender.getItemInHand();
if (!inHand.getType().equals(Material.AIR)) { 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")); defender.sendMessage(LocaleLoader.getString("Skills.Disarmed"));
Misc.mcDropItem(defender.getLocation(), inHand); Misc.mcDropItem(defender.getLocation(), inHand);