mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 11:52:32 +01:00
Scripts/AzuremystIsle: Set correct PvP flags for Draenei Survivor (#30067)
This commit is contained in:
2
sql/updates/world/3.3.5/2024_12_05_04_world.sql
Normal file
2
sql/updates/world/3.3.5/2024_12_05_04_world.sql
Normal file
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user