Follow up d9a35c8c6a7c08d5397647cb0ae470bd5692898d
* A little check to avoid unnecessary process. Signed-off-by: Cydh Ramdh <cydh@pservero.com>
This commit is contained in:
parent
d9a35c8c6a
commit
dc679b8c06
@ -4229,9 +4229,11 @@ static int skill_reveal_trap(struct block_list *bl, va_list ap)
|
||||
* @param range Affected range
|
||||
* @param x
|
||||
* @param y
|
||||
* TODO: Remove this hardcodes
|
||||
* TODO: Remove hardcode usages for this function
|
||||
**/
|
||||
void skill_reveal_trap_inarea(struct block_list *src, int range, int x, int y) {
|
||||
if (!battle_config.traps_setting)
|
||||
return;
|
||||
nullpo_retv(src);
|
||||
map_foreachinarea(skill_reveal_trap, src->m, x-range, y-range, x+range, y+range, BL_SKILL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user