[Bug Fix] Do not check tics remaining on non-buff spells (#1633)

This commit is contained in:
Natedog2012 2021-10-22 16:16:56 -05:00 committed by GitHub
parent 657cbbcabe
commit c30dbf6628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
std::string buf = fmt::format(
"{} {} {} {}",
caster ? caster->GetID() : 0,
buffs[buffslot].ticsremaining,
buffslot >= 0 ? buffs[buffslot].ticsremaining : 0,
caster ? caster->GetLevel() : 0,
buffslot
);