Skip to content

Commit fdd42c7

Browse files
authored
Scripts/AzuremystIsle: Set correct PvP flags for Draenei Survivor (#30067)
1 parent b7bbc42 commit fdd42c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Set PvP flag for "Draenei Survivor" to allow targeting for quest "Rescue the Survivors!"
2+
UPDATE `creature_template_addon` SET `PvPFlags`=0x1 WHERE `entry`=16483;

src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class npc_draenei_survivor : public CreatureScript
9191

9292
DoCast(me, SPELL_IRRIDATION, true);
9393

94-
me->SetUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
94+
me->SetPvP(true);
9595
me->SetUnitFlag(UNIT_FLAG_IN_COMBAT);
9696
me->SetHealth(me->CountPctFromMaxHealth(10));
9797
me->SetStandState(UNIT_STAND_STATE_SLEEP);
@@ -115,7 +115,7 @@ class npc_draenei_survivor : public CreatureScript
115115
{
116116
if (spellInfo->SpellFamilyFlags[2] & 0x080000000)
117117
{
118-
me->RemoveUnitFlag(UNIT_FLAG_PLAYER_CONTROLLED);
118+
me->SetPvP(false);
119119
me->SetStandState(UNIT_STAND_STATE_STAND);
120120

121121
DoCast(me, SPELL_STUNNED, true);

0 commit comments

Comments
 (0)