From 12e70490d80482d679e516540ed45b7b2b5c7e73 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Mon, 20 May 2013 18:15:17 -0400 Subject: [PATCH] Cooldowns messages need to be affected by perks too --- .../com/gmail/nossr50/runnables/skills/AbilityDisableTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java index 0026dfaea..1fc630f2e 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/skills/AbilityDisableTask.java @@ -11,6 +11,7 @@ import com.gmail.nossr50.datatypes.skills.SkillType; import com.gmail.nossr50.events.skills.abilities.McMMOPlayerAbilityDeactivateEvent; import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.skills.ParticleEffectUtils; +import com.gmail.nossr50.util.skills.PerksUtils; import com.gmail.nossr50.util.skills.SkillUtils; public class AbilityDisableTask extends BukkitRunnable { @@ -59,6 +60,6 @@ public class AbilityDisableTask extends BukkitRunnable { } SkillUtils.sendSkillMessage(player, ability.getAbilityPlayerOff(player)); - new AbilityCooldownTask(mcMMOPlayer, ability).runTaskLaterAsynchronously(mcMMO.p, ability.getCooldown() * 20); + new AbilityCooldownTask(mcMMOPlayer, ability).runTaskLaterAsynchronously(mcMMO.p, PerksUtils.handleCooldownPerks(player, ability.getCooldown()) * 20); } }