Addition of isHidingMessages skill parameter.

This commit is contained in:
MobiusDevelopment
2022-08-02 10:18:05 +00:00
parent 3c7a170ea0
commit 14f1e75d43
72 changed files with 217 additions and 49 deletions

View File

@ -210,6 +210,7 @@ public class Skill implements IIdentifiable
private final double _magicCriticalRate;
private final SkillBuffType _buffType;
private final boolean _displayInList;
private final boolean _isHidingMessages;
public Skill(StatSet set)
{
@ -401,6 +402,7 @@ public class Skill implements IIdentifiable
_magicCriticalRate = set.getDouble("magicCriticalRate", 0);
_buffType = _isTriggeredSkill ? SkillBuffType.TRIGGER : isToggle() ? SkillBuffType.TOGGLE : isDance() ? SkillBuffType.DANCE : _isDebuff ? SkillBuffType.DEBUFF : !isHealingPotionSkill() ? SkillBuffType.BUFF : SkillBuffType.NONE;
_displayInList = set.getBoolean("displayInList", true);
_isHidingMessages = set.getBoolean("isHidingMessages", false);
}
public TraitType getTraitType()
@ -921,7 +923,7 @@ public class Skill implements IIdentifiable
public boolean isHidingMessages()
{
return _operateType.isHidingMessages();
return _isHidingMessages || _operateType.isHidingMessages();
}
public boolean isNotBroadcastable()

View File

@ -346,7 +346,10 @@ public class SkillCaster implements Runnable
if (caster.isPlayer() && !instantCast)
{
// Send a system message to the player.
caster.sendPacket(_skill.getId() != 2046 ? new SystemMessage(SystemMessageId.YOU_USE_S1).addSkillName(_skill) : new SystemMessage(SystemMessageId.SUMMONING_YOUR_PET));
if (!_skill.isHidingMessages())
{
caster.sendPacket(_skill.getId() != 2046 ? new SystemMessage(SystemMessageId.YOU_USE_S1).addSkillName(_skill) : new SystemMessage(SystemMessageId.SUMMONING_YOUR_PET));
}
// Show the gauge bar for casting.
caster.sendPacket(new SetupGauge(caster.getObjectId(), SetupGauge.BLUE, displayedCastTime));