From 695678202733ff8fe813520aea0ab61104cf20c2 Mon Sep 17 00:00:00 2001 From: gsemaj Date: Sun, 24 Sep 2023 12:22:55 -0700 Subject: [PATCH] Fix some buffs ending prematurely --- src/Abilities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Abilities.cpp b/src/Abilities.cpp index 69b4326..2e4f44d 100644 --- a/src/Abilities.cpp +++ b/src/Abilities.cpp @@ -120,7 +120,8 @@ static SkillResult handleSkillBuff(SkillData* skill, int power, ICombatant* sour int duration = skill->durationTime[power]; int strength = skill->values[0][power]; BuffStack passiveBuff = { - skill->drainType == SkillDrainType::PASSIVE ? 1 : (duration * 100) / MS_PER_COMBAT_TICK, // ticks + // if the duration is 0, it needs to be recast every tick + duration == 0 ? 1 : (duration * 100) / MS_PER_COMBAT_TICK, // ticks strength, // value source->getRef(), // source source == target ? BuffClass::NANO : BuffClass::GROUP_NANO, // buff class