From f0a87e4f7f5377498960429e96be5dff183c8326 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 9 Jan 2013 00:18:53 -0800 Subject: Make incoming packets read-only --- src/map/battle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/battle.cpp') diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 7da685f..93f6fe6 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -3628,7 +3628,7 @@ struct Damage battle_calc_pc_weapon_attack(struct block_list *src, && sd->inventory_data[index]->type == ItemType::WEAPON) { damage += - (int)(double)(sd->inventory_data[index]->weight * + (int)(sd->inventory_data[index]->weight * (0.8 * skill_lv * 4 / 10)); damage += sd->status.inventory[index].refine * pc_getrefinebonus(0, -- cgit v1.2.3-70-g09d2