diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2015-08-12 11:20:12 +0530 |
---|---|---|
committer | Dastgir <dastgirpojee@rocketmail.com> | 2015-08-12 11:20:12 +0530 |
commit | 10f24ba5b82e7e563cb720a8dea9a415fd8055d7 (patch) | |
tree | 854d29dfa5096dcb1e427a2b50b47fdb4601b8b8 /src/map/skill.c | |
parent | c63f46ef29310ec846b7fb90e02e93a6abd7abdc (diff) | |
parent | be8b2eaed13475ae043daa81882e490e78396562 (diff) | |
download | hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.gz hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.bz2 hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.xz hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
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 |