# eSpellDataTargetType

Spell data target type enumeration.

# Description

Enumeration for spell data target types, used to identify the target type of a spell (such as unit target, area effect, etc.), value type is number

# How to Use

auto spell = player->GetSpell(eSpellSlot::Q);
if(spell->GetSpellData()->GetTargetType() == eSpellDataTargetType::Unit)
{
    // This is a unit target skill
}

# Properties

key value remarks
Self 0 Self as target
Unit 1 Unit as target
LocationAoe 2 Area of effect skill
Cone 3 Cone area skill
SelfAoe 4 Area of effect centered on self
SelfAndUnit 5 Affects both self and target unit
Location 6 Location-specific skill
Location2 7 Location-specific skill (type 2)
LocationVector 8 Vector location skill
LocationSummon 10 Summon location skill
Location3 11 Location-specific skill (type 3)
LocationTunnel 12 Tunnel-type location skill