aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-12-29 16:03:52 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-29 16:03:52 +0100
commit115409f353141dc8cf49a91699e9593b1bf04385 (patch)
treef5fdf8cdf208af79370b0ac586352522f60231a6 /src/server/game/Spells/SpellScript.cpp
parent730fc4665bee1b153987aa105aa509edec92e235 (diff)
Core/Spells: Implemented target 116 TARGET_UNIT_AND_DEST_LAST_ENEMY
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rw-r--r--src/server/game/Spells/SpellScript.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index 402b43265fe..671ea468227 100644
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -273,9 +273,12 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
case TARGET_SELECT_CATEGORY_NEARBY: // BOTH
return true;
case TARGET_SELECT_CATEGORY_CONE: // AREA
- case TARGET_SELECT_CATEGORY_AREA: // AREA
case TARGET_SELECT_CATEGORY_LINE: // AREA
return area;
+ case TARGET_SELECT_CATEGORY_AREA: // AREA
+ if (targetInfo.GetObjectType() == TARGET_OBJECT_TYPE_UNIT_AND_DEST)
+ return area || dest;
+ return area;
case TARGET_SELECT_CATEGORY_DEFAULT:
switch (targetInfo.GetObjectType())
{