From ba133f94fc5acfc3c873cc11470d9a97be423189 Mon Sep 17 00:00:00 2001 From: bm01 Date: Fri, 15 Jun 2012 02:34:24 +0200 Subject: [PATCH] Extra equals --- .../java/com/gmail/nossr50/skills/archery/ArcheryManager.java | 4 ++-- .../java/com/gmail/nossr50/skills/taming/TamingManager.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java index 2d06492fe..df9db6077 100644 --- a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java @@ -34,7 +34,7 @@ public class ArcheryManager { ArrowTrackingEventHandler eventHandler = new ArrowTrackingEventHandler(this, livingEntity); - if (Archery.getRandom().nextInt(1000) <= eventHandler.skillModifier) { + if (Archery.getRandom().nextInt(1000) < eventHandler.skillModifier) { eventHandler.addToTracker(); } } @@ -52,7 +52,7 @@ public class ArcheryManager { DazeEventHandler eventHandler = new DazeEventHandler(this, event, defender); - if (Archery.getRandom().nextInt(2000) <= eventHandler.skillModifier) { + if (Archery.getRandom().nextInt(2000) < eventHandler.skillModifier) { eventHandler.handleDazeEffect(); eventHandler.sendAbilityMessages(); } diff --git a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java index cc0c3fe64..73894b741 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/TamingManager.java @@ -78,7 +78,7 @@ public class TamingManager { GoreEventHandler eventHandler = new GoreEventHandler(this, event); - if (Taming.getRandom().nextInt(1000) <= eventHandler.skillModifier) { + if (Taming.getRandom().nextInt(1000) < eventHandler.skillModifier) { eventHandler.modifyEventDamage(); eventHandler.applyBleed(); eventHandler.sendAbilityMessage();