diff options
author | Chaouki Dhib <chaodhib@gmail.com> | 2017-05-14 21:34:37 +0200 |
---|---|---|
committer | Chaouki Dhib <chaodhib@gmail.com> | 2017-05-14 21:40:11 +0200 |
commit | 2ff76e828f7c757b5120aba41947a6d63e082e17 (patch) | |
tree | ef589875d4cd955ec86596b7f60c7669b192bf14 | |
parent | e263654c77fbbe94f3af2d462aaf203c9c4f6ec8 (diff) |
Core/Spells: Change the radius of PBAoEs following the feedback received on (#16290)
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 4 | ||||
-rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 29 | ||||
-rw-r--r-- | src/server/game/Spells/SpellInfo.h | 1 |
3 files changed, 0 insertions, 34 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index ff9ac128abd..d1c7d6c20c4 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -1220,10 +1220,6 @@ void Spell::SelectImplicitAreaTargets(SpellEffIndex effIndex, SpellImplicitTarge radius *= m_spellValue->RadiusMod; - // if this is a proximity based aoe (Frost Nova, Psychic Scream, ...), include the caster's own combat reach - if (targetType.IsProximityBasedAoe()) - radius += GetCaster()->GetCombatReach(); - SearchAreaTargets(targets, radius, center, referer, targetType.GetObjectType(), targetType.GetCheckType(), m_spellInfo->Effects[effIndex].ImplicitTargetConditions); CallScriptObjectAreaTargetSelectHandlers(targets, effIndex, targetType); diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 99c0ceee3de..ac85052a49e 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -66,35 +66,6 @@ bool SpellImplicitTargetInfo::IsArea() const return GetSelectionCategory() == TARGET_SELECT_CATEGORY_AREA || GetSelectionCategory() == TARGET_SELECT_CATEGORY_CONE; } -bool SpellImplicitTargetInfo::IsProximityBasedAoe() const -{ - switch (_target) - { - case TARGET_UNIT_SRC_AREA_ENTRY: - case TARGET_UNIT_SRC_AREA_ENEMY: - case TARGET_UNIT_CASTER_AREA_PARTY: - case TARGET_UNIT_SRC_AREA_ALLY: - case TARGET_UNIT_SRC_AREA_PARTY: - case TARGET_UNIT_LASTTARGET_AREA_PARTY: - case TARGET_GAMEOBJECT_SRC_AREA: - case TARGET_UNIT_CASTER_AREA_RAID: - case TARGET_CORPSE_SRC_AREA_ENEMY: - return true; - - case TARGET_UNIT_DEST_AREA_ENTRY: - case TARGET_UNIT_DEST_AREA_ENEMY: - case TARGET_UNIT_DEST_AREA_ALLY: - case TARGET_UNIT_DEST_AREA_PARTY: - case TARGET_GAMEOBJECT_DEST_AREA: - case TARGET_UNIT_TARGET_AREA_RAID_CLASS: - return false; - - default: - TC_LOG_WARN("spells", "SpellImplicitTargetInfo::IsProximityBasedAoe called a non-aoe spell"); - return false; - } -} - SpellTargetSelectionCategories SpellImplicitTargetInfo::GetSelectionCategory() const { return _data[_target].SelectionCategory; diff --git a/src/server/game/Spells/SpellInfo.h b/src/server/game/Spells/SpellInfo.h index 5336fffffeb..483605a1212 100644 --- a/src/server/game/Spells/SpellInfo.h +++ b/src/server/game/Spells/SpellInfo.h @@ -210,7 +210,6 @@ public: SpellImplicitTargetInfo(uint32 target); bool IsArea() const; - bool IsProximityBasedAoe() const; SpellTargetSelectionCategories GetSelectionCategory() const; SpellTargetReferenceTypes GetReferenceType() const; SpellTargetObjectTypes GetObjectType() const; |