mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-28 10:21:35 +00:00
17 lines
651 B
Plaintext
17 lines
651 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)
|
|
|
|
/datum/spell_targeting/clicked_atom/external/choose_targets(mob/user, obj/effect/proc_holder/spell/spell, params, atom/clicked_atom)
|
|
. = ..()
|
|
if(!.)
|
|
return list()
|
|
if(!isturf(clicked_atom.loc) && !isturf(clicked_atom))
|
|
return list()
|