Skip to content

Commit

Permalink
Scripts/AzuremystIsle: Set correct PvP flags for Draenei Survivor (Tr…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfinke authored Dec 5, 2024
1 parent b7bbc42 commit fdd42c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sql/updates/world/3.3.5/2024_12_05_04_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Set PvP flag for "Draenei Survivor" to allow targeting for quest "Rescue the Survivors!"
UPDATE `creature_template_addon` SET `PvPFlags`=0x1 WHERE `entry`=16483;
4 changes: 2 additions & 2 deletions src/server/scripts/Kalimdor/zone_azuremyst_isle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class npc_draenei_survivor : public CreatureScript

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);
Expand All @@ -115,7 +115,7 @@ class npc_draenei_survivor : public CreatureScript
{
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);
Expand Down

0 comments on commit fdd42c7

Please sign in to comment.