Browse Source

Fixes Land Protector not removing some units
* Fixes Land Protector not removing units with the RangedSingleUnit flag.
Thanks to @teededung!

Aleos 5 năm trước cách đây
mục cha
commit
986f8b0595
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/map/skill.cpp

+ 1 - 1
src/map/skill.cpp

@@ -17547,7 +17547,7 @@ static int skill_cell_overlap(struct block_list *bl, va_list ap)
 				//It deletes everything except traps and barriers
 				if ((!skill->inf2[INF2_ISTRAP] && !skill->inf2[INF2_IGNORELANDPROTECTOR]) || unit->group->skill_id == WZ_FIREPILLAR || unit->group->skill_id == GN_HELLS_PLANT) {
 					if (skill->unit_flag[UF_RANGEDSINGLEUNIT]) {
-						if (unit->val2&UF_RANGEDSINGLEUNIT)
+						if (unit->val2&(1 << UF_RANGEDSINGLEUNIT))
 							skill_delunitgroup(unit->group);
 					} else
 						skill_delunit(unit);