From e1571c0492652ff7cf2682a94538a13b354fcdb6 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 31 Jul 2009 11:12:04 +0800 Subject: *Handle target area path as area cone for now. --HG-- branch : trunk --- src/game/Spell.cpp | 1 + src/game/SpellMgr.cpp | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 54e796a8231..af5cda5bec3 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2222,6 +2222,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) case TARGET_UNIT_AREA_ENEMY_DST: case TARGET_UNIT_CONE_ENEMY: case TARGET_UNIT_CONE_ENEMY_UNKNOWN: + case TARGET_UNIT_AREA_PATH: radius = GetSpellRadius(m_spellInfo, i, false); targetType = SPELL_TARGETS_ENEMY; break; diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index e449a2dbe1c..5e82f472e8a 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -147,6 +147,7 @@ SpellMgr::SpellMgr() case TARGET_UNIT_CONE_ALLY: case TARGET_UNIT_CONE_ENTRY: case TARGET_UNIT_CONE_ENEMY_UNKNOWN: + case TARGET_UNIT_AREA_PATH: SpellTargetType[i] = TARGET_TYPE_AREA_CONE; break; case TARGET_DST_CASTER: @@ -226,6 +227,7 @@ SpellMgr::SpellMgr() case TARGET_UNIT_CONE_ENEMY: case TARGET_UNIT_CONE_ALLY: case TARGET_UNIT_CONE_ENEMY_UNKNOWN: + case TARGET_UNIT_AREA_PATH: case TARGET_UNIT_RAID_CASTER: IsAreaEffectTarget[i] = true; break; -- cgit v1.2.3