[7808] Move corpse search code in function with template arg for class-check. Author: Astellar

This let reuse code for other similar near corpse target selection spells.
    Also provided currently not used class-checks for 2 spells

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-10 14:47:56 -05:00
parent f8645d8706
commit b8e82a23a6
5 changed files with 84 additions and 20 deletions
+2
View File
@@ -412,6 +412,8 @@ class Spell
void SetTargetMap(uint32 i, uint32 cur);
template<typename T> WorldObject* FindCorpseUsing();
bool CheckTarget( Unit* target, uint32 eff );
bool CanAutoCast(Unit* target);
void CheckSrc() { if(!m_targets.HasSrc()) m_targets.setSrc(m_caster); }