diff options
author | Asheraf <acheraf1998@gmail.com> | 2019-11-05 22:04:26 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2019-11-06 17:13:37 +0100 |
commit | c6635fbf0145b03656d1b90212a3f3093de228d3 (patch) | |
tree | 2e0a0752d87068500e1766c06ac815e0f57a290f /src/map/unit.c | |
parent | 76ccfbd19e9cb96fdfd0627f1a8f6493ed960c0b (diff) | |
download | hercules-c6635fbf0145b03656d1b90212a3f3093de228d3.tar.gz hercules-c6635fbf0145b03656d1b90212a3f3093de228d3.tar.bz2 hercules-c6635fbf0145b03656d1b90212a3f3093de228d3.tar.xz hercules-c6635fbf0145b03656d1b90212a3f3093de228d3.zip |
Dehardcode Status Icons
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 1e9433eaf..e7ac6d24f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -661,7 +661,7 @@ static void unit_run_hit(struct block_list *bl, struct status_change *sc, struct lv = sc->data[type]->val1; //If you can't run forward, you must be next to a wall, so bounce back. [Skotlex] if( type == SC_RUN ) - clif->sc_load(bl,bl->id,AREA,SI_TING,0,0,0); + clif->sc_load(bl, bl->id, AREA, status->get_sc_icon(SC_TING), 0, 0, 0); ud = unit->bl2ud(bl); nullpo_retv(ud); @@ -673,7 +673,7 @@ static void unit_run_hit(struct block_list *bl, struct status_change *sc, struct if (lv > 0) skill->blown(bl, bl, skill->get_blewcount(TK_RUN, lv), unit->getdir(bl), 0); clif->fixpos(bl); //Why is a clif->slide (skill->blown) AND a fixpos needed? Ask Aegis. - clif->sc_end(bl, bl->id, AREA, SI_TING); + clif->sc_end(bl, bl->id, AREA, status->get_sc_icon(SC_TING)); } else if (sd) { clif->fixpos(bl); skill->castend_damage_id(bl, &sd->bl, RA_WUGDASH, lv, timer->gettick(), SD_LEVEL); |