*Fix some spells with TARGET_FLAG_CASTER.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-18 10:46:30 -05:00
parent 5d2968792f
commit 5629168dbb
2 changed files with 7 additions and 1 deletions

View File

@@ -466,6 +466,12 @@ void Spell::FillTargetMap()
continue;
}
if(tmpUnitMap.empty() && m_spellInfo->Targets & TARGET_FLAG_CASTER)
{
AddUnitTarget(m_caster, i);
continue;
}
if(!targetA && !targetB)
{
// add here custom effects that need default target.

View File

@@ -56,7 +56,7 @@ enum SpellCastTargetFlags
TARGET_FLAG_SOURCE_LOCATION = 0x00000020, // 3 float
TARGET_FLAG_DEST_LOCATION = 0x00000040, // 3 float
TARGET_FLAG_OBJECT_UNK = 0x00000080, // used in 7 spells only
TARGET_FLAG_UNIT_UNK = 0x00000100, // looks like self target (480 spells)
TARGET_FLAG_CASTER = 0x00000100, // looks like self target (480 spells)
TARGET_FLAG_PVP_CORPSE = 0x00000200, // pguid
TARGET_FLAG_UNIT_CORPSE = 0x00000400, // 10 spells (gathering professions)
TARGET_FLAG_OBJECT = 0x00000800, // pguid, 2 spells