mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
27 lines
570 B
Plaintext
27 lines
570 B
Plaintext
/atom/movable/spell/aoe_turf/blink
|
|
name = "Blink"
|
|
desc = "This spell randomly teleports you a short distance."
|
|
|
|
school = "abjuration"
|
|
charge_max = 20
|
|
spell_flags = Z2NOCAST | IGNOREDENSE | IGNORESPACE
|
|
invocation = "none"
|
|
invocation_type = "none"
|
|
range = 7
|
|
inner_radius = 1
|
|
cooldown_min = 5 //4 deciseconds reduction per rank
|
|
|
|
smoke_spread = 0
|
|
smoke_amt = 1
|
|
|
|
/atom/movable/spell/aoe_turf/blink/cast(var/list/targets, mob/user)
|
|
if(!targets.len)
|
|
return
|
|
|
|
var/turf/T = pick(targets)
|
|
if(T)
|
|
if(user.buckled)
|
|
user.buckled.unbuckle()
|
|
user.loc = T
|
|
|
|
return |