mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
-added a check to see if the mob is a wizard or apprentice -replaced the faction check with the new check -fixed wizard apprentices, also giving them a book with three spells uses -you can now cast cure major wounds on yourself -reduces the brain damage caused by swap Fixes #2047
43 lines
911 B
Plaintext
43 lines
911 B
Plaintext
/spell/targeted/swap
|
|
name = "Swap"
|
|
desc = "This spell swaps the positions of the wizard and a target. Causes brain damage."
|
|
feedback = "SW"
|
|
school = "abjuration"
|
|
|
|
charge_type = Sp_HOLDVAR
|
|
holder_var_type = "brainloss"
|
|
holder_var_amount = 5
|
|
|
|
invocation = "joyo!"
|
|
invocation_type = SpI_WHISPER
|
|
|
|
level_max = list(Sp_TOTAL = 2, Sp_SPEED = 0, Sp_POWER = 2)
|
|
|
|
spell_flags = Z2NOCAST
|
|
range = 6
|
|
max_targets = 1
|
|
compatible_mobs = list(/mob/living)
|
|
|
|
hud_state = "wiz_swap"
|
|
|
|
cast_sound = 'sound/effects/bamf.ogg'
|
|
|
|
/spell/targeted/swap/cast(var/list/targets, mob/user)
|
|
for(var/mob/T in targets)
|
|
var/turf/aT = get_turf(T)
|
|
var/turf/bT = get_turf(user)
|
|
|
|
T.forceMove(bT)
|
|
user.forceMove(aT)
|
|
|
|
apply_spell_damage(T)
|
|
|
|
/spell/targeted/swap/empower_spell()
|
|
if(!..())
|
|
return 0
|
|
|
|
amt_eye_blind += 2
|
|
amt_weakened += 5
|
|
|
|
return "This spell will now weaken and blind the target for a longer period of time."
|