aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2019-01-28 11:19:23 -0300
committerShauren <shauren.trinity@gmail.com>2021-11-22 23:57:54 +0100
commit4af28946263be5cd2631f97f92eb2ebe86d901cb (patch)
tree70750ccf9c794370b68548f641903cc2ccc0444f /src
parentc3210798f0bdab7f518ba0cfa39c004d41313b98 (diff)
Scripts/Black Temple: Mother Shahraz fatal attraction need be random
Higher distance showed in my sniffs is 48 yards (rounding 50 yards). If someone find more then that, please let me know. Ty killerwife (cherry picked from commit fd69c133b10e289167f34438cb34fb5d4a141b4c)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp
index f57304d02ca..4ecae3cfd83 100644
--- a/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp
+++ b/src/server/scripts/Outland/BlackTemple/boss_mother_shahraz.cpp
@@ -98,17 +98,6 @@ uint32 const PrismaticAuras[6]=
SPELL_PRISMATIC_AURA_HOLY
};
-Position const TeleportPoint[7]=
-{
- { 959.996f, 212.576f, 193.843f },
- { 932.537f, 231.813f, 193.838f },
- { 958.675f, 254.767f, 193.822f },
- { 946.955f, 201.316f, 192.535f },
- { 944.294f, 149.676f, 197.551f },
- { 930.548f, 284.888f, 193.367f },
- { 965.997f, 278.398f, 195.777f }
-};
-
struct boss_mother_shahraz : public BossAI
{
boss_mother_shahraz(Creature* creature) : BossAI(creature, DATA_MOTHER_SHAHRAZ), _enraged(false) { }
@@ -218,7 +207,7 @@ class spell_mother_shahraz_fatal_attraction : public SpellScript
void SetDest(SpellDestination& dest)
{
- dest.Relocate(TeleportPoint[urand(0, 6)]);
+ dest.Relocate(GetCaster()->GetRandomNearPosition(50.0f));
}
void HandleTeleport(SpellEffIndex /*effIndex*/)