Files
vgstation13/code/modules/spells/targeted/disintegrate.dm
ancientpower 93cc86bc5b New wizard spell #2: Pacify (#24871)
* new support spell #1

* adjustment

* pre-emptively fixing icons to avoid conflicts

* re-implemented pacifism flag

* removed unnecessary vars

* oops

* oops again

* whoops 3

* fixes bad math

* math fix 2
2019-11-11 11:32:35 -06:00

32 lines
880 B
Plaintext

/spell/targeted/disintegrate
name = "Disintegrate"
desc = "This spell instantly kills somebody adjacent to you with the vilest of magick."
abbreviation = "DG"
user_type = USER_TYPE_SPELLBOOK
school = "evocation"
charge_max = 600
spell_flags = NEEDSCLOTHES | IS_HARMFUL
invocation = "EI NATH"
invocation_type = SpI_SHOUT
range = 1
cooldown_min = 200 //100 deciseconds reduction per rank
sparks_spread = 1
sparks_amt = 4
hud_state = "wiz_disint"
/spell/targeted/disintegrate/cast(var/list/targets)
..()
var/mob/living/L = holder
for(var/mob/living/target in targets)
if (L.is_pacified(VIOLENCE_DEFAULT,target))
return
if(ishuman(target) || ismonkey(target))
var/mob/living/carbon/C = target
if(!C.has_brain()) // Their brain is already taken out
var/obj/item/organ/internal/brain/B = new(C.loc)
B.transfer_identity(C)
target.gib()
return