*Fix some spells with TARGET_FLAG_CASTER.
--HG-- branch : trunk
This commit is contained in:
@@ -466,6 +466,12 @@ void Spell::FillTargetMap()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(tmpUnitMap.empty() && m_spellInfo->Targets & TARGET_FLAG_CASTER)
|
||||||
|
{
|
||||||
|
AddUnitTarget(m_caster, i);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if(!targetA && !targetB)
|
if(!targetA && !targetB)
|
||||||
{
|
{
|
||||||
// add here custom effects that need default target.
|
// add here custom effects that need default target.
|
||||||
|
|||||||
+1
-1
@@ -56,7 +56,7 @@ enum SpellCastTargetFlags
|
|||||||
TARGET_FLAG_SOURCE_LOCATION = 0x00000020, // 3 float
|
TARGET_FLAG_SOURCE_LOCATION = 0x00000020, // 3 float
|
||||||
TARGET_FLAG_DEST_LOCATION = 0x00000040, // 3 float
|
TARGET_FLAG_DEST_LOCATION = 0x00000040, // 3 float
|
||||||
TARGET_FLAG_OBJECT_UNK = 0x00000080, // used in 7 spells only
|
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_PVP_CORPSE = 0x00000200, // pguid
|
||||||
TARGET_FLAG_UNIT_CORPSE = 0x00000400, // 10 spells (gathering professions)
|
TARGET_FLAG_UNIT_CORPSE = 0x00000400, // 10 spells (gathering professions)
|
||||||
TARGET_FLAG_OBJECT = 0x00000800, // pguid, 2 spells
|
TARGET_FLAG_OBJECT = 0x00000800, // pguid, 2 spells
|
||||||
|
|||||||
Reference in New Issue
Block a user