Core/Auras: Added support for SPELL_ATTR5_LIMIT_N limit to other number than just 1

Port From (https://github.com/TrinityCore/TrinityCore/commit/d818add0e20fcf2c86ef46b5cd94f942488511a0)
This commit is contained in:
hondacrx
2022-06-01 13:51:21 -04:00
parent 35b5a28821
commit c7ea51d1dd
3 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -4379,7 +4379,7 @@ namespace Game.Entities
if (spellInfo.ActiveIconFileDataId == 135754) // flight
spellInfo.Attributes |= SpellAttr0.Passive;
if (spellInfo.IsSingleTarget())
if (spellInfo.IsSingleTarget() && spellInfo.MaxAffectedTargets == 0)
spellInfo.MaxAffectedTargets = 1;
}