From 7dcc75d82e0521e920f6bcac23e2f36f79fc3e35 Mon Sep 17 00:00:00 2001 From: Atemo Date: Thu, 11 Nov 2021 14:23:37 +0100 Subject: [PATCH] Fixed a mistake on NPC_COMET (#6351) Fixed https://github.com/rathena/rathena/issues/6350 Thanks to @attackjom ! --- src/map/skill.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 2c7910ba5d..d5852f5a4b 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -14250,9 +14250,9 @@ int skill_unit_onplace_timer(struct skill_unit *unit, struct block_list *bl, t_t break; case NPC_COMET: case WL_COMET: - if (map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR)) - break; // Nothing should happen if the target is on Land Protector - // Fall through + if (map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) == 0)// Nothing should happen if the target is on Land Protector + skill_attack(skill_get_type(sg->skill_id),ss,&unit->bl,bl,sg->skill_id,sg->skill_lv,tick,0); + break; case NPC_WIDESUCK: { int heal = (int)skill_attack(skill_get_type(sg->skill_id),ss,&unit->bl,bl,sg->skill_id,sg->skill_lv,tick,0);