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:
FH3095
2013-02-16 23:08:51 +01:00
parent 2d861b71ce
commit b27ff4045d

View File

@@ -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();