summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-09 06:29:03 -0300
committerpanikon <panikon@zoho.com>2014-07-09 07:09:37 -0300
commit1eee0fd015aaca31df67f0cc7fa36105ade366df (patch)
tree1475ccfd8b7c6f3756768d7006afef74dd14f0f7 /src/map/status.c
parentfc41d1f9fa9f3eff21568c8111f74454793dea9c (diff)
downloadhercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.gz
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.bz2
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.tar.xz
hercules-1eee0fd015aaca31df67f0cc7fa36105ade366df.zip
Fixed issue with mounts and jobchange, ranger and mechanic mounts weren't being checked and properly removed in pc_setoption
Abstracted running functions into two other methods (unit_run and unit_wugdash) Added checks in skill_dance_switch so it'd be safe to call it whenever it's needed Documented unit_run, unit_run_hit, skill_dance_switch and sc_conf_type
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 915559260..0787e7cad 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -9502,7 +9502,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
{
struct unit_data *ud = unit->bl2ud(bl);
if( ud )
- ud->state.running = unit->run(bl);
+ ud->state.running = unit->run(bl, NULL, SC_RUN);
}
break;
case SC_CASH_BOSS_ALARM:
@@ -9521,7 +9521,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
{
struct unit_data *ud = unit->bl2ud(bl);
if( ud )
- ud->state.running = unit->wugdash(bl, sd);
+ ud->state.running = unit->run(bl, sd, SC_WUGDASH);
}
break;
case SC_COMBOATTACK: