aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFH3095 <fh3095-github@yahoo.de>2013-02-16 23:08:51 +0100
committerFH3095 <fh3095-github@yahoo.de>2013-02-16 23:08:51 +0100
commitb27ff4045da1ea2d1b3e2f19cef34538d1d5c123 (patch)
treeed814e929e5a28846d84995cb68e77067cddbe6b /src
parent2d861b71ce9753ffa4d899acdbb0ca44bcb13128 (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.cpp6
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();