summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-10-18 13:49:50 +0200
committerGitHub <noreply@github.com>2019-10-18 13:49:50 +0200
commit1e72ad082e6e10b0a4fbbe703ce6ad44efb4063d (patch)
tree4dc198e93af1af84b1737c8bd7beb73846d0c62b /src/map
parent3b58e5a41631da1ac74e0de7fa13213a2ad228ab (diff)
parent11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3 (diff)
downloadhercules-1e72ad082e6e10b0a4fbbe703ce6ad44efb4063d.tar.gz
hercules-1e72ad082e6e10b0a4fbbe703ce6ad44efb4063d.tar.bz2
hercules-1e72ad082e6e10b0a4fbbe703ce6ad44efb4063d.tar.xz
hercules-1e72ad082e6e10b0a4fbbe703ce6ad44efb4063d.zip
Merge pull request #2544 from Emistry/clif_skill_estimation
Update Sense Skill - show 0 for negative values
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 5c6bc39d3..ace733b75 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5899,7 +5899,7 @@ static void clif_skill_estimation(struct map_session_data *sd, struct block_list
{
struct status_data *dstatus;
unsigned char buf[64];
- int i;//, fix;
+ int i, fix;
nullpo_retv(sd);
nullpo_retv(dst);
@@ -5921,9 +5921,9 @@ static void clif_skill_estimation(struct map_session_data *sd, struct block_list
+ ((battle_config.estimation_type&2) ? dstatus->mdef2 : 0);
WBUFW(buf,18) = dstatus->def_ele;
for(i=0;i<9;i++) {
- WBUFB(buf,20+i)= (unsigned char)battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv);
+ // WBUFB(buf,20+i)= (unsigned char)battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv);
// The following caps negative attributes to 0 since the client displays them as 255-fix. [Skotlex]
- //WBUFB(buf,20+i)= (unsigned char)((fix=battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv))<0?0:fix);
+ WBUFB(buf,20+i)= (unsigned char)((fix=battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv))<0?0:fix);
}
clif->send(buf,packet_len(0x18c),&sd->bl,sd->status.party_id>0?PARTY_SAMEMAP:SELF);