*Some update of spell target selection.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-23 00:46:21 -05:00
parent db066046df
commit b35fe879ad
11 changed files with 208 additions and 37 deletions
+14
View File
@@ -294,6 +294,20 @@ inline bool IsCasterSourceTarget(uint32 target)
return false;
}
inline bool IsPositionTarget(uint32 target)
{
switch (SpellTargetType[target])
{
case TARGET_TYPE_DEST_CASTER:
case TARGET_TYPE_DEST_TARGET:
case TARGET_TYPE_DEST_DEST:
return true;
default:
break;
}
return false;
}
inline bool IsSpellWithCasterSourceTargetsOnly(SpellEntry const* spellInfo)
{
for(int i = 0; i < 3; ++i)