Fixed a mistake on NPC_COMET (#6351)

Fixed https://github.com/rathena/rathena/issues/6350

Thanks to @attackjom !
This commit is contained in:
Atemo
2021-11-11 14:23:37 +01:00
committed by GitHub
parent 238af67994
commit 7dcc75d82e

View File

@@ -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);