aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Finke <danielfinke2011@gmail.com>2024-12-05 12:30:24 -0800
committerGitHub <noreply@github.com>2024-12-05 21:30:24 +0100
commitfdd42c7d371f6826d5c67c4b0db3e8d393fc3ee7 (patch)
tree88210ca541ac9eb11374f1ec466be6dcd64c8f68 /src
parentb7bbc42c14ccb1dfe002db831121f6c6263c4d6e (diff)
Scripts/AzuremystIsle: Set correct PvP flags for Draenei Survivor (#30067)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp b/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
index 3913560d859..78448c14103 100644
--- a/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
+++ b/src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
@@ -91,7 +91,7 @@ public:
DoCast(me, SPELL_IRRIDATION, true);
- me->SetUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
+ me->SetPvP(true);
me->SetUnitFlag(UNIT_FLAG_IN_COMBAT);
me->SetHealth(me->CountPctFromMaxHealth(10));
me->SetStandState(UNIT_STAND_STATE_SLEEP);
@@ -115,7 +115,7 @@ public:
{
if (spellInfo->SpellFamilyFlags[2] & 0x080000000)
{
- me->RemoveUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
+ me->SetPvP(false);
me->SetStandState(UNIT_STAND_STATE_STAND);
DoCast(me, SPELL_STUNNED, true);