mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Replace check in IsSingleTargetWith
Old check was SpellFamily and SpellIcon, new is IsRankOf, which seems to make more sense in that context. close #8290
This commit is contained in:
@@ -1174,10 +1174,8 @@ bool SpellInfo::IsSingleTarget() const
|
||||
|
||||
bool SpellInfo::IsSingleTargetWith(SpellInfo const* spellInfo) const
|
||||
{
|
||||
// TODO - need better check
|
||||
// Equal icon and spellfamily
|
||||
if (SpellFamilyName == spellInfo->SpellFamilyName &&
|
||||
SpellIconID == spellInfo->SpellIconID)
|
||||
// Same spell?
|
||||
if (IsRankOf(spellInfo))
|
||||
return true;
|
||||
|
||||
SpellSpecificType spec = GetSpellSpecific();
|
||||
|
||||
Reference in New Issue
Block a user