diff --git a/sim.cpp b/sim.cpp index 37135c83..c8959f86 100644 --- a/sim.cpp +++ b/sim.cpp @@ -1912,20 +1912,21 @@ void PerformAttack::damage_dependant_pre_oa() def_status->m_poisoned = poison_value; } } - else { - if (skill_check(fd, att_status, def_status)) { + else { + unsigned venom_value = att_status->skill(Skill::venom); + if (venom_value > 0 && skill_check(fd, att_status, def_status)) { #ifndef NQUEST - if (att_status->m_player == 0) - { - fd->inc_counter(QuestType::skill_use, Skill::venom); - } + if (att_status->m_player == 0) + { + fd->inc_counter(QuestType::skill_use, Skill::venom); + } #endif - unsigned venom_value = att_status->skill(Skill::venom); - _DEBUG_MSG(1, "%s venoms %s by %u\n", - status_description(att_status).c_str(), - status_description(def_status).c_str(), venom_value); - // new venom keeps adding stacks - def_status->m_poisoned += venom_value; + + _DEBUG_MSG(1, "%s venoms %s by %u\n", + status_description(att_status).c_str(), + status_description(def_status).c_str(), venom_value); + // new venom keeps adding stacks + def_status->m_poisoned += venom_value; } } }