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:
parent
86d72dfd78
commit
986f8b0595
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user