Core/Chat: fix RBAC_PERM_COMMANDS_NOTIFY_COMMAND_NOT_FOUND_ERROR for subcommands

This commit is contained in:
hondacrx
2018-03-12 14:40:58 -04:00
parent 05ecb41a10
commit b9c1e3876b
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -2668,10 +2668,10 @@ namespace Game.Entities
float DoneTotalMod = 1.0f;
// 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
if (!spellProto.HasAttribute(SpellAttr6.NoDonePctDamageMods) && !spellProto.GetSchoolMask().HasAnyFlag(SpellSchoolMask.Normal))
if (!spellProto.GetSchoolMask().HasAnyFlag(SpellSchoolMask.Normal))
{
float maxModDamagePercentSchool = 0.0f;
for (var i = SpellSchools.Holy; i < SpellSchools.Max; ++i)