Fixed silent skills

This commit is contained in:
Jules 2022-02-06 22:26:38 +01:00
parent be6d181c08
commit fa6b54542c

View File

@ -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)) {