diff options
| author | FH3095 <fh3095-github@yahoo.de> | 2013-02-16 23:08:51 +0100 |
|---|---|---|
| committer | FH3095 <fh3095-github@yahoo.de> | 2013-02-16 23:08:51 +0100 |
| commit | b27ff4045da1ea2d1b3e2f19cef34538d1d5c123 (patch) | |
| tree | ed814e929e5a28846d84995cb68e77067cddbe6b /src | |
| parent | 2d861b71ce9753ffa4d899acdbb0ca44bcb13128 (diff) | |
Replace check in IsSingleTargetWith
Old check was SpellFamily and SpellIcon, new is IsRankOf,
which seems to make more sense in that context.
close #8290
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 9a9369bad28..d2ab1a315e8 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -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(); |
