summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2018-10-20 23:21:07 -0300
committerGuilherme G. Menaldo <guilherme.menaldo@outlook.com>2018-10-20 23:21:07 -0300
commit1e3d3a3c0bca912ebdf18ae337814b2f434ec442 (patch)
tree7711e509fca9fd4b4ddcc7185cbaa897086f9266 /src/map/skill.c
parentdf3f7552e61d1dae45e83c55ff36b95ab95181bb (diff)
downloadhercules-1e3d3a3c0bca912ebdf18ae337814b2f434ec442.tar.gz
hercules-1e3d3a3c0bca912ebdf18ae337814b2f434ec442.tar.bz2
hercules-1e3d3a3c0bca912ebdf18ae337814b2f434ec442.tar.xz
hercules-1e3d3a3c0bca912ebdf18ae337814b2f434ec442.zip
Added setting to keep traps invisible when triggered
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2b31de6fc..c320fe4b3 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -12759,7 +12759,9 @@ static int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *b
ts->tick += sg->interval*(map->count_oncell(bl->m,bl->x,bl->y,BL_CHAR,0)-1);
}
- if (battle_config.trap_visibility != 0 && skill->get_inf2(sg->skill_id) & INF2_HIDDEN_TRAP) {
+ if (sg->skill_id == HT_ANKLESNARE
+ || (battle_config.trap_trigger == 1 && skill->get_inf2(sg->skill_id) & INF2_HIDDEN_TRAP)
+ ) {
src->visible = true;
clif->skillunit_update(&src->bl);
}