mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed Iron Grip working reversely
This commit is contained in:
parent
dbc57060ee
commit
06ede80435
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user