diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-13 23:00:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-14 00:27:39 +0300 |
commit | 3630d991b0b1b2ac6beafdf8d0870375b7816f8f (patch) | |
tree | e022df04c788e538ea1cfaa3ba19951ab32b4ab7 /src/map/unit.c | |
parent | 0d5a0c3df4291f8e272c24e57a16582555506238 (diff) | |
download | hercules-3630d991b0b1b2ac6beafdf8d0870375b7816f8f.tar.gz hercules-3630d991b0b1b2ac6beafdf8d0870375b7816f8f.tar.bz2 hercules-3630d991b0b1b2ac6beafdf8d0870375b7816f8f.tar.xz hercules-3630d991b0b1b2ac6beafdf8d0870375b7816f8f.zip |
Simplify clif_skillcasting and rename to clif_useskill.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index ac1e3e9b5..3a3e56dd3 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1574,7 +1574,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui unit->stop_walking(src, STOPWALKING_FLAG_FIXPOS);// even though this is not how official works but this will do the trick. bugreport:6829 // in official this is triggered even if no cast time. - clif->skillcasting(src, src->id, target_id, 0,0, skill_id, skill->get_ele(skill_id, skill_lv), casttime); + clif->useskill(src, src->id, target_id, 0,0, skill_id, skill_lv, casttime); if( casttime > 0 || temp ) { if (sd != NULL && target->type == BL_MOB) { @@ -1769,7 +1769,7 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, ui unit->stop_walking(src, STOPWALKING_FLAG_FIXPOS); // in official this is triggered even if no cast time. - clif->skillcasting(src, src->id, 0, skill_x, skill_y, skill_id, skill->get_ele(skill_id, skill_lv), casttime); + clif->useskill(src, src->id, 0, skill_x, skill_y, skill_id, skill_lv, casttime); if( casttime > 0 ) { unit->setdir(src, map->calc_dir(src, skill_x, skill_y)); ud->skilltimer = timer->add( tick+casttime, skill->castend_pos, src->id, 0 ); |