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/SpellEffects.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/SpellEffects.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 9590d022ff8..2d53cdd40c3 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1600,14 +1600,6 @@ void Spell::EffectForceCast(SpellEffIndex effIndex) break; } } - - // temphack - if (m_spellInfo->Id == 51888) - { - unitTarget->CastSpell(unitTarget, spellInfo->Id, true, NULL, NULL, m_originalCasterGUID); - return; - } - unitTarget->CastSpell(m_caster, spellInfo, true); } |
