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

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