mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 12:50:29 +01:00
f8333a8d93
* move those to static paths * maps * . * . * ugh * .
35 lines
812 B
Plaintext
35 lines
812 B
Plaintext
/datum/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 = SpI_NONE
|
|
range = 7
|
|
inner_radius = 1
|
|
cooldown_min = 5 //4 deciseconds reduction per rank
|
|
hud_state = "wiz_blink"
|
|
|
|
/datum/spell/aoe_turf/blink/cast(var/list/targets, mob/user)
|
|
if(!targets.len)
|
|
return
|
|
|
|
var/turf/T = pick(targets)
|
|
var/turf/starting = get_turf(user)
|
|
if(T)
|
|
if(user.buckled)
|
|
user.buckled.unbuckle_mob( user, TRUE)
|
|
user.forceMove(T)
|
|
|
|
var/datum/effect/effect/system/smoke_spread/smoke = new /datum/effect/effect/system/smoke_spread()
|
|
smoke.set_up(3, 0, starting)
|
|
smoke.start()
|
|
|
|
smoke = new()
|
|
smoke.set_up(3, 0, T)
|
|
smoke.start()
|
|
|
|
return
|