summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 11:06:22 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 11:06:22 +0000
commitc60a65af0a205559f378c287b9f4fd12698fb0f1 (patch)
tree6babb33d4348932f8318da12bd184027b27dde94 /src/map
parent70a82456ade2c41fe8b6cf9ef3774428453b1c31 (diff)
downloadhercules-c60a65af0a205559f378c287b9f4fd12698fb0f1.tar.gz
hercules-c60a65af0a205559f378c287b9f4fd12698fb0f1.tar.bz2
hercules-c60a65af0a205559f378c287b9f4fd12698fb0f1.tar.xz
hercules-c60a65af0a205559f378c287b9f4fd12698fb0f1.zip
Fixed Katar critical boost on status window (would work; but not change the value in the window), bugreport:3053
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15267 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/pc.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a8969d38e..ac5ee91e3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2587,6 +2587,8 @@ int clif_updatestatus(struct map_session_data *sd,int type)
break;
case SP_CRITICAL:
WFIFOL(fd,4)=sd->battle_status.cri/10;
+ if(sd->status.weapon == W_KATAR)
+ WFIFOL(fd,4) <<=1;
break;
case SP_MATK1:
WFIFOL(fd,4)=sd->battle_status.matk_max;
diff --git a/src/map/pc.c b/src/map/pc.c
index 1110aba09..0c286f29e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7354,6 +7354,8 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos)
sd->weapontype1 = 0;
pc_calcweapontype(sd);
clif_changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
+ if( sd->status.weapon == W_KATAR )
+ clif_updatestatus(sd,SP_CRITICAL);
}
if(pos & EQP_HAND_L) {
if(id) {
@@ -7495,9 +7497,12 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag)
clif_changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon);
}
if(sd->status.inventory[n].equip & EQP_HAND_L) {
+ bool kt_flag = ( sd->status.weapon == W_KATAR );
sd->status.shield = sd->weapontype2 = 0;
pc_calcweapontype(sd);
clif_changelook(&sd->bl,LOOK_SHIELD,sd->status.shield);
+ if( kt_flag )
+ clif_updatestatus(sd,SP_CRITICAL);
}
if(sd->status.inventory[n].equip & EQP_HEAD_LOW && pc_checkequip(sd,EQP_COSTUME_HEAD_LOW) == -1 ) {
sd->status.head_bottom = 0;