summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-05-26 05:13:17 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-05-26 05:13:17 +0800
commitcd8e68ba9e18a6be416ecc4197b119eb9425fc23 (patch)
tree8721f1f332120afa9130af5ae387995a7a128b59 /src/map/skill.c
parent027f124cbb96bb99d00bc31ad51345024edadf66 (diff)
downloadhercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.gz
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.bz2
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.tar.xz
hercules-cd8e68ba9e18a6be416ecc4197b119eb9425fc23.zip
Another batch of corrected skill level check
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index ba7465c0b..f44497d82 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11977,7 +11977,8 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6
break;
default:
skill->attack(skill->get_type(sg->skill_id),ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
- sg->unit_id = UNT_USED_TRAPS;
+ if ( sg->interval == skill->get_time(sg->skill_id, sg->skill_lv) )
+ sg->unit_id = UNT_USED_TRAPS; // remove unit once it does its job once.
}
break;