summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-11-10 21:09:46 +0100
committerHaruna <haru@dotalux.com>2014-11-10 21:09:46 +0100
commit82ca427389450aabec616a55b1a5ed519bd44d8e (patch)
tree6c004ef9edd56f6ac039df26342810ac21de3bdb /src/map/status.c
parentc1e1099c701de325a076172bcadf544e5b3000c9 (diff)
parentcfd535c7f5b442ae3d96a192a2dbe8650cae99af (diff)
downloadhercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.gz
hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.bz2
hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.tar.xz
hercules-82ca427389450aabec616a55b1a5ed519bd44d8e.zip
Merge pull request #386 from 4144/fixplugins
Fix interfaces methods usage.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 66f7db3fa..4b31b9486 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6390,7 +6390,7 @@ int status_get_sc_def(struct block_list *src, struct block_list *bl, enum sc_typ
sd = BL_CAST(BL_PC,bl);
st = status->get_status_data(bl);
- bst = status_get_base_status(bl);
+ bst = status->get_base_status(bl);
sc = status->get_sc(bl);
if( sc && !sc->count )
sc = NULL;
@@ -10985,7 +10985,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC__REPRODUCE:
if( --(sce->val4) >= 0 ) {
- if( !status_charge(bl, 0, 9 - (1 + sce->val1) / 2) )
+ if( !status->charge(bl, 0, 9 - (1 + sce->val1) / 2) )
break;
sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
return 0;
@@ -11056,10 +11056,10 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_SIRCLEOFNATURE:
if( --(sce->val4) >= 0 ) {
- if( !status_charge(bl,0,sce->val3) )
+ if( !status->charge(bl,0,sce->val3) )
break;
status->heal(bl, sce->val2, 0, 1);
- sc_timer_next(1000 + tick, status_change_timer, bl->id, data);
+ sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
return 0;
}
break;
@@ -11075,7 +11075,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_SATURDAY_NIGHT_FEVER:
if( --(sce->val3) >= 0 ) {
- if( !status_charge(bl, st->max_hp * 1 / 100, st->max_sp * 1 / 100) )
+ if( !status->charge(bl, st->max_hp * 1 / 100, st->max_sp * 1 / 100) )
break;
sc_timer_next(3000+tick, status->change_timer, bl->id, data);
return 0;
@@ -11084,7 +11084,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_MELODYOFSINK:
if( --(sce->val4) >= 0 ) {
- status_charge(bl, 0, st->max_sp * ( 2 * sce->val1 + 2 * sce->val2 ) / 100);
+ status->charge(bl, 0, st->max_sp * ( 2 * sce->val1 + 2 * sce->val2 ) / 100);
sc_timer_next(1000+tick, status->change_timer, bl->id, data);
return 0;
}
@@ -11167,7 +11167,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
if( st->sp <= sp )
status_change_end(bl,SC_STEALTHFIELD_MASTER,INVALID_TIMER);
- if( !status_charge(bl,0,sp) )
+ if( !status->charge(bl,0,sp) )
break;
if( !sc->data[SC_STEALTHFIELD_MASTER] )