From fa6b54542c1e70d5141b4640eb897429321aba76 Mon Sep 17 00:00:00 2001 From: Jules Date: Sun, 6 Feb 2022 22:26:38 +0100 Subject: [PATCH] Fixed silent skills --- src/main/java/net/Indyuce/mmocore/skill/CastableSkill.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/skill/CastableSkill.java b/src/main/java/net/Indyuce/mmocore/skill/CastableSkill.java index 3e9991c7..abe908f7 100644 --- a/src/main/java/net/Indyuce/mmocore/skill/CastableSkill.java +++ b/src/main/java/net/Indyuce/mmocore/skill/CastableSkill.java @@ -28,7 +28,7 @@ public class CastableSkill extends Skill { @Override public boolean getResult(SkillMetadata skillMeta) { PlayerData playerData = PlayerData.get(skillMeta.getCaster().getData().getUniqueId()); - boolean loud = !skill.getSkill().hasTrigger() || !skill.getSkill().getTrigger().isSilent(); + boolean loud = skill.getSkill().getHandler().isTriggerable() && (!skill.getSkill().hasTrigger() || !skill.getSkill().getTrigger().isSilent()); // If the caster has unlocked that skill if (!playerData.hasSkillUnlocked(skill)) {