diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-14 21:53:59 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-12-14 21:53:59 +0800 |
commit | c0169f29abd37dcc8c29510343755c5034a0751a (patch) | |
tree | 1ef475232d43269d0d0ef4c006fcf26e2b1a2354 /src/map/status.c | |
parent | fe7734dcb4ee15221b5dd006ea269ddf2f42e4b2 (diff) | |
parent | c15b8c6274794b766847a6a9c1651caeaa1e25c5 (diff) | |
download | hercules-c0169f29abd37dcc8c29510343755c5034a0751a.tar.gz hercules-c0169f29abd37dcc8c29510343755c5034a0751a.tar.bz2 hercules-c0169f29abd37dcc8c29510343755c5034a0751a.tar.xz hercules-c0169f29abd37dcc8c29510343755c5034a0751a.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 9fbda4b59..6d4b8d5fa 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -8072,10 +8072,10 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t if(sd && val2 == SL_HIGH) { int stat,max_stat; // Fetch target's stats - struct status_data* status2 = status_get_status_data(bl); // Battle status + struct status_data* status2 = status->get_status_data(bl); // Battle status val3 = 0; val4 = 0; - max_stat = (status_get_lv(bl)-10<50)?status_get_lv(bl)-10:50; + max_stat = (status->get_lv(bl)-10<50)?status->get_lv(bl)-10:50; stat = max(0, max_stat - status2->str ); val3 |= cap_value(stat,0,0xFF)<<16; stat = max(0, max_stat - status2->agi ); val3 |= cap_value(stat,0,0xFF)<<8; stat = max(0, max_stat - status2->vit ); val3 |= cap_value(stat,0,0xFF); |