Core/Chat: fix RBAC_PERM_COMMANDS_NOTIFY_COMMAND_NOT_FOUND_ERROR for subcommands
This commit is contained in:
@@ -967,7 +967,6 @@ namespace Framework.Constants
|
|||||||
AhbotUpdateInterval,
|
AhbotUpdateInterval,
|
||||||
AllTaxiPaths,
|
AllTaxiPaths,
|
||||||
AllowGmGroup,
|
AllowGmGroup,
|
||||||
AllowPlayerCommands,
|
|
||||||
AllowTrackBothResources,
|
AllowTrackBothResources,
|
||||||
AllowTwoSideInteractionAuction,
|
AllowTwoSideInteractionAuction,
|
||||||
AllowTwoSideInteractionCalendar,
|
AllowTwoSideInteractionCalendar,
|
||||||
|
|||||||
@@ -107,6 +107,9 @@ namespace Game.Chat
|
|||||||
string arg = args.NextString("");
|
string arg = args.NextString("");
|
||||||
if (!ExecuteCommandInTable(command.ChildCommands, arg, fullcmd))
|
if (!ExecuteCommandInTable(command.ChildCommands, arg, fullcmd))
|
||||||
{
|
{
|
||||||
|
if (_session != null && !_session.HasPermission(RBACPermissions.CommandsNotifyCommandNotFoundError))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!arg.IsEmpty())
|
if (!arg.IsEmpty())
|
||||||
SendSysMessage(CypherStrings.NoSubcmd);
|
SendSysMessage(CypherStrings.NoSubcmd);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -2668,10 +2668,10 @@ namespace Game.Entities
|
|||||||
float DoneTotalMod = 1.0f;
|
float DoneTotalMod = 1.0f;
|
||||||
|
|
||||||
// Some spells don't benefit from pct done mods
|
// Some spells don't benefit from pct done mods
|
||||||
if (spellProto != null)
|
if (spellProto != null && !spellProto.HasAttribute(SpellAttr6.NoDonePctDamageMods))
|
||||||
{
|
{
|
||||||
// mods for SPELL_SCHOOL_MASK_NORMAL are already factored in base melee damage calculation
|
// mods for SPELL_SCHOOL_MASK_NORMAL are already factored in base melee damage calculation
|
||||||
if (!spellProto.HasAttribute(SpellAttr6.NoDonePctDamageMods) && !spellProto.GetSchoolMask().HasAnyFlag(SpellSchoolMask.Normal))
|
if (!spellProto.GetSchoolMask().HasAnyFlag(SpellSchoolMask.Normal))
|
||||||
{
|
{
|
||||||
float maxModDamagePercentSchool = 0.0f;
|
float maxModDamagePercentSchool = 0.0f;
|
||||||
for (var i = SpellSchools.Holy; i < SpellSchools.Max; ++i)
|
for (var i = SpellSchools.Holy; i < SpellSchools.Max; ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user