From 09ae42ea30dacba9326b1ab2bbe98b012450fa6f Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 15 Apr 2024 20:36:37 +0800 Subject: [PATCH] Fix warlock --- src/strategy/warlock/WarlockTriggers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/warlock/WarlockTriggers.cpp b/src/strategy/warlock/WarlockTriggers.cpp index 1109ead5..733e7502 100644 --- a/src/strategy/warlock/WarlockTriggers.cpp +++ b/src/strategy/warlock/WarlockTriggers.cpp @@ -45,5 +45,5 @@ bool UnstableAfflictionOnAttackerTrigger::IsActive() bool DecimationTrigger::IsActive() { Aura *aura = botAI->GetAura(getName(), GetTarget(), false, true); - return aura->GetDuration() > 3000; + return aura && aura->GetDuration() > 3000; } \ No newline at end of file