Files
Aurora.3/code/modules/spells/targeted/swap.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

43 lines
912 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 = 10
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."