forked from Upstream/mmocore
Fixed silent skills
This commit is contained in:
parent
be6d181c08
commit
fa6b54542c
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user