Fixed issue with some skill activations not activating enough or

activating too much.

Fixes #785
This commit is contained in:
GJ
2013-03-04 22:45:37 -05:00
parent 4210920c5f
commit df53e2fd4f
5 changed files with 7 additions and 5 deletions

View File

@ -134,7 +134,7 @@ public class FishingManager extends SkillManager {
* @param mob The {@link LivingEntity} affected by the ability
*/
public void shakeCheck(LivingEntity target) {
if (getActivationChance() > getShakeProbability()) {
if (getShakeProbability() > Misc.getRandom().nextInt(getActivationChance())) {
Map<ItemStack, Integer> possibleDrops = new HashMap<ItemStack, Integer>();
Fishing.findPossibleDrops(target, possibleDrops);