From e7785d56930ff584331d1d4b26c779060fea3cff Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 15 Mar 2017 15:25:42 -0400 Subject: [PATCH] Bash dmg should return 0 with no item (slam) --- zone/special_attacks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/special_attacks.cpp b/zone/special_attacks.cpp index fa91fdf73..a5cae5700 100644 --- a/zone/special_attacks.cpp +++ b/zone/special_attacks.cpp @@ -94,6 +94,8 @@ int Mob::GetBaseSkillDamage(EQEmu::skills::SkillType skill, Mob *target) } if (inst) ac_bonus = inst->GetItemArmorClass(true) / 25.0f; + else + return 0; // return 0 in cases where we don't have an item if (ac_bonus > skill_bonus) ac_bonus = skill_bonus; return static_cast(ac_bonus + skill_bonus);