Explorar o código

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

Aleos %!s(int64=5) %!d(string=hai) anos
pai
achega
986f8b0595
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);