Addition of isHidingMessages skill parameter.
This commit is contained in:
@ -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()
|
||||
|
@ -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));
|
||||
|
Reference in New Issue
Block a user