Scripts/AzuremystIsle: Set correct PvP flags for Draenei Survivor (#30067)

This commit is contained in:
Daniel Finke
2024-12-05 12:30:24 -08:00
committed by GitHub
parent b7bbc42c14
commit fdd42c7d37
2 changed files with 4 additions and 2 deletions

View File

@@ -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);