mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-06 11:50:55 +01:00
576482907b
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
13 lines
432 B
Plaintext
13 lines
432 B
Plaintext
/**
|
|
* A simple spell targeting system. Will return the clicked atom as a target. Only works for 1 target max and is basically a dumbed down [/datum/spell_targeting/click]
|
|
*/
|
|
/datum/spell_targeting/clicked_atom
|
|
use_intercept_click = TRUE
|
|
|
|
/datum/spell_targeting/clicked_atom/choose_targets(mob/user, obj/effect/proc_holder/spell/spell, params, atom/clicked_atom)
|
|
if(clicked_atom)
|
|
return list(clicked_atom)
|
|
else
|
|
return null
|
|
|