Files
Aurora.3/code/modules/spells/aoe_turf/blink.dm
Alberyk ed6dbee896 Bay wizard port/rework (#1635)
Ports the newest bay wizard version, with some additions and changes.

General changes:
-ported the newest bay wizard
-wizards can select some school of magic, which also changes their spell selection as whole.
-added several new spells, like raise dead, contracts that bind the person with the wizard, and more.
-added wands, limited sources of certain types of effects/spell, also with their own bad effects for non wizards
-changed the wizard checks to a faction check instead of a mind check
-fixed wizards without certain slots due to race being fucked over due to it
-added new artifacts
-balanced some spells like the emp
-added a lot of new sounds to spell, mostly from tg
-remove horse mask from spell selection, also, you can melt the mask with acid now
-wizard's spell are now displayed at round end like traitors and what they did buy
-also fixes vaurca, and vox, antags spawning without a mask by default
2017-02-07 18:45:42 +02:00

45 lines
1.0 KiB
Plaintext

/spell/aoe_turf/blink
name = "Blink"
desc = "This spell randomly teleports you a short distance."
feedback = "BL"
school = "abjuration"
charge_max = 20
spell_flags = Z2NOCAST | IGNOREDENSE | IGNORESPACE
invocation = "none"
invocation_type = SpI_NONE
range = 7
inner_radius = 1
cast_sound = 'sound/magic/blink.ogg'
level_max = list(Sp_TOTAL = 4, Sp_SPEED = 4, Sp_POWER = 4)
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
/spell/aoe_turf/blink/empower_spell()
if(!..())
return 0
inner_radius += 1
return "You've increased the inner range of [src]."