mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 19:52:12 +00:00
16 lines
580 B
Plaintext
16 lines
580 B
Plaintext
/**
|
|
* Will find targets in the GLOB.alive_mob_list. The result will be in a random order
|
|
*/
|
|
/datum/spell_targeting/alive_mob_list
|
|
allowed_type = /mob/living
|
|
|
|
/datum/spell_targeting/alive_mob_list/choose_targets(mob/user, obj/effect/proc_holder/spell/spell, params, atom/clicked_atom)
|
|
var/list/possible_targets = list()
|
|
for(var/mob/living/possible_target as anything in GLOB.alive_mob_list)
|
|
if(valid_target(possible_target, user, spell, FALSE))
|
|
possible_targets += possible_target
|
|
|
|
var/list/targets = pick_multiple_unique(possible_targets, max_targets)
|
|
|
|
return targets
|