Przeglądaj źródła

Fixed a mistake on NPC_COMET (#6351)

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

Thanks to @attackjom !
Atemo 3 lat temu
rodzic
commit
7dcc75d82e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/map/skill.cpp

+ 3 - 3
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);