From 7f30ac5a9549746d19af9ca4cfc1ad7b8d2f1f4c Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 24 Aug 2011 08:07:59 +0200 Subject: 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. --- src/server/game/Spells/SpellMgr.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/server/game/Spells/SpellMgr.cpp') 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 -- cgit v1.2.3