diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-07 21:13:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-10 23:06:08 +0300 |
commit | c0367b69fd226be21643cd4b620fff2aadb0e742 (patch) | |
tree | 94b6cb16c7c5232020a22896496813be378a340e /src/map/skill.c | |
parent | 5ad96bcc2af2a5a76348fca87e52a0f038461808 (diff) | |
download | hercules-c0367b69fd226be21643cd4b620fff2aadb0e742.tar.gz hercules-c0367b69fd226be21643cd4b620fff2aadb0e742.tar.bz2 hercules-c0367b69fd226be21643cd4b620fff2aadb0e742.tar.xz hercules-c0367b69fd226be21643cd4b620fff2aadb0e742.zip |
Move use item script function call into function script_run_use_script.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index f2154aa22..e3f85f8d1 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6858,7 +6858,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin script->potion_flag = 1; script->potion_hp = script->potion_sp = script->potion_per_hp = script->potion_per_sp = 0; script->potion_target = bl->id; - script->run(sd->inventory_data[i]->script,0,sd->bl.id,0); + script->run_use_script(sd, sd->inventory_data[i], 0); script->potion_flag = script->potion_target = 0; if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_ALCHEMIST ) bonus += sd->status.base_level; @@ -10539,7 +10539,7 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui script->potion_flag = 1; script->potion_hp = 0; script->potion_sp = 0; - script->run(sd->inventory_data[j]->script,0,sd->bl.id,0); + script->run_use_script(sd, sd->inventory_data[j], 0); script->potion_flag = 0; //Apply skill bonuses i = pc->checkskill(sd,CR_SLIMPITCHER)*10 |