From caea9cb4fb90de304f2da90fbf4d0104910adf97 Mon Sep 17 00:00:00 2001 From: sonilyan <286258386@qq.com> Date: Thu, 15 Feb 2024 10:02:56 +0800 Subject: [PATCH] Fix yaam no damage (#351) --- src/combat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/combat.cc b/src/combat.cc index 5ee50c5..63d4805 100644 --- a/src/combat.cc +++ b/src/combat.cc @@ -6787,7 +6787,7 @@ static void damageModCalculateYaam(DamageCalculationContext* context) } for (int index = 0; index < context->ammoQuantity; index++) { - int damage = weaponGetDamage(context->attack->weapon, context->attack->hitMode); + int damage = weaponGetDamage(context->attack->attacker, context->attack->hitMode); damage += context->damageBonus; damage -= calculatedDamageThreshold;