refactor(Scripts/EasternKingdoms): code cleanup (part 5) - also fix potential crash (#6923)

This commit is contained in:
Francesco Borzì
2021-07-19 11:23:27 +02:00
committed by GitHub
parent fab0fc421b
commit e5f1104849
37 changed files with 118 additions and 144 deletions

View File

@@ -577,7 +577,7 @@ public:
events.Update(diff);
if (me->HealthBelowPct(30) && !(me->GetEntry() == DARK_SHADE_ENTRY))
if (me->HealthBelowPct(30) && me->GetEntry() != DARK_SHADE_ENTRY)
{
events.Reset();
me->InterruptNonMeleeSpells(false);