fix(Scripts/ScarletEnclave): Death Knight Initiates now despawn when defeated. (#22268)

This commit is contained in:
Rocco Silipo
2025-06-05 16:45:56 +02:00
committed by GitHub
parent c9cacfee44
commit d26d09c358
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
-- Remove Wrong Auras
UPDATE `creature_addon` SET `auras` = '' WHERE (`guid` IN (129492, 129496, 129497, 129498, 129499));
-- Remove Wrong Unit Flags (Immune to npc and pc "Sniffs")
UPDATE `creature_template` SET `unit_flags` = `unit_flags` &~(256|512) WHERE (`entry` = 28406);

View File

@@ -131,7 +131,6 @@ public:
if (creature->AI()->GetData(DATA_IN_PROGRESS))
return true;
creature->SetImmuneToPC(false);
creature->RemoveUnitFlag(UNIT_FLAG_SWIMMING);
player->CastSpell(creature, SPELL_DUEL, false);
@@ -231,6 +230,7 @@ public:
me->RemoveAllAuras();
me->CastSpell(attacker, SPELL_DUEL_VICTORY, true);
me->RestoreFaction();
me->DespawnOrUnsummon(10000);
}
}
}