Files
CHOMPStation2/code/modules/spells/aoe_turf/blink.dm
PsiOmega 990530d118 Ports /vg/'s spell system for the sake of cult porting.
Does offer a much more pleasant basis to work with in the future, if someone wishes to add more spell-like abilities.
2015-04-09 20:08:06 +02:00

35 lines
781 B
Plaintext

/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"
/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 = null
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