summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-12 23:22:54 +0200
committerGitHub <noreply@github.com>2016-07-12 23:22:54 +0200
commit0d60f6920f388fdae86cb8fb4286d9ed1b0f94a0 (patch)
treed0731b1158ffdb12eb2db23c762576cb37251792 /src/map/status.c
parent69df5ffa970dbcafde7dbb5d360c0ea28300cb50 (diff)
parentec700e101d420286caa149bd2858c3e159e55998 (diff)
downloadhercules-0d60f6920f388fdae86cb8fb4286d9ed1b0f94a0.tar.gz
hercules-0d60f6920f388fdae86cb8fb4286d9ed1b0f94a0.tar.bz2
hercules-0d60f6920f388fdae86cb8fb4286d9ed1b0f94a0.tar.xz
hercules-0d60f6920f388fdae86cb8fb4286d9ed1b0f94a0.zip
Merge pull request #1354 from 4144/hooks
Add into skill.c some handling for unknown skills/skill units.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 73b5a5123..315f6bb19 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -11402,17 +11402,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
mushroom_skill_id = skill->dbs->magicmushroom_db[i].skill_id;
} while (mushroom_skill_id == 0);
- switch( skill->get_casttype(mushroom_skill_id) ) { // Magic Mushroom skills are buffs or area damage
- case CAST_GROUND:
- skill->castend_pos2(bl,bl->x,bl->y,mushroom_skill_id,1,tick,0);
- break;
- case CAST_NODAMAGE:
- skill->castend_nodamage_id(bl,bl,mushroom_skill_id,1,tick,0);
- break;
- case CAST_DAMAGE:
- skill->castend_damage_id(bl,bl,mushroom_skill_id,1,tick,0);
- break;
- }
+ skill->castend_type(skill->get_casttype(mushroom_skill_id), bl, bl, mushroom_skill_id, 1, tick, 0);
}
clif->emotion(bl,E_HEH);