summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-17 06:52:06 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-17 06:52:06 +0000
commit50d4640a538e16e718e8192ca12bc5ade1a7387f (patch)
tree119860d6e35ae3e60e751029f5aa99fed5ebc0dc /src/map/battle.c
parent4f499fb621d773df8fde389b2b3a281b866b3213 (diff)
downloadhercules-50d4640a538e16e718e8192ca12bc5ade1a7387f.tar.gz
hercules-50d4640a538e16e718e8192ca12bc5ade1a7387f.tar.bz2
hercules-50d4640a538e16e718e8192ca12bc5ade1a7387f.tar.xz
hercules-50d4640a538e16e718e8192ca12bc5ade1a7387f.zip
- Fixed the party HP packets to send max HP 10000 and scale HP accordingly when the player's HP doesn't fits in the packet's field. Fixes HP bars not correctly displaying the % of life when max HP is above 32k.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7218 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index b7350fbd4..7d474d5ee 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -766,7 +766,7 @@ static struct Damage battle_calc_weapon_attack(
unsigned idef : 1; //Ignore defense
unsigned idef2 : 1; //Ignore defense (left weapon)
unsigned pdef : 2; //Pierces defense (Investigate/Ice Pick)
- unsigned pdef2 : 2; //1: Use def+def2/50, 2: Use def+def2/100
+ unsigned pdef2 : 2; //1: Use def+def2/100, 2: Use def+def2/50
unsigned infdef : 1; //Infinite defense (plants)
unsigned arrow : 1; //Attack is arrow-based
unsigned rh : 1; //Attack considers right hand (wd.damage)