Fixes Land Protector not removing some units
* Fixes Land Protector not removing units with the RangedSingleUnit flag. Thanks to @teededung!
This commit is contained in:
@@ -17547,7 +17547,7 @@ static int skill_cell_overlap(struct block_list *bl, va_list ap)
|
|||||||
//It deletes everything except traps and barriers
|
//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->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 (skill->unit_flag[UF_RANGEDSINGLEUNIT]) {
|
||||||
if (unit->val2&UF_RANGEDSINGLEUNIT)
|
if (unit->val2&(1 << UF_RANGEDSINGLEUNIT))
|
||||||
skill_delunitgroup(unit->group);
|
skill_delunitgroup(unit->group);
|
||||||
} else
|
} else
|
||||||
skill_delunit(unit);
|
skill_delunit(unit);
|
||||||
|
|||||||
Reference in New Issue
Block a user