diff options
| author | QAston <qaston@gmail.com> | 2011-08-24 08:07:59 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-08-24 08:08:33 +0200 |
| commit | 7f30ac5a9549746d19af9ca4cfc1ad7b8d2f1f4c (patch) | |
| tree | 50ab82a86ca92b300cee7408f97db514af722147 /src/server/game/Spells/SpellMgr.cpp | |
| parent | 9f7a557c05f4bb631c5f358093f2379ac01590a7 (diff) | |
Core/Spells: Add a generic way of selecting spell explicit targets. Make explicit targets independant of calling convention in core - this makes targets sent to client to be much more blizzlike than before (for example CastSpell(Unit*) won't set TARGET_FLAG_UNIT for spells which are not using explicit unit target) for SMSG_SPELL_START packets. Also remove hacks, which became obsolete with this commit.
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellMgr.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 3234f573ec1..0012f950599 100755 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2876,16 +2876,6 @@ void SpellMgr::LoadDbcDataCorrections() spellInfo->Effect[j] = SPELL_EFFECT_TRIGGER_MISSILE; break; } - - switch (SpellImplicitTargetInfo::Type[spellInfo->EffectImplicitTargetA[j]]) - { - case TARGET_TYPE_UNIT_TARGET: - case TARGET_TYPE_DEST_TARGET: - spellInfo->Targets |= TARGET_FLAG_UNIT; - break; - default: - break; - } } if (spellInfo->activeIconID == 2158) // flight |
