From d29e1f49ade177e675b9760efa91777392243c8c Mon Sep 17 00:00:00 2001 From: skyleo Date: Thu, 6 Feb 2020 00:28:07 +0100 Subject: Fix W_RIFLE damage calculation being too low than intended Rifle type weapons had a broken call to battle_calc_base_damage2 since they were passing the flag value 18 and flag&16 != 0 as stated by the documentation shall only be the case when no gun or bow is equipped. This bug existed since 2006 and got introduced by the commit e24d467f1ae47475e3441d7453f549e22f46f541 . --- src/map/battle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/battle.c b/src/map/battle.c index 0b88f17c9..40e7d3161 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4977,6 +4977,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl switch (sd->weapontype) { case W_BOW: case W_REVOLVER: + case W_RIFLE: case W_GATLING: case W_SHOTGUN: case W_GRENADE: -- cgit v1.2.3-70-g09d2