mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 04:21:42 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
15 lines
688 B
Plaintext
15 lines
688 B
Plaintext
/// Strikes the target with a lightning bolt
|
|
/datum/smite/lightning
|
|
name = "Lightning bolt"
|
|
|
|
/datum/smite/lightning/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
var/turf/lightning_source = get_step(get_step(target, NORTH), NORTH)
|
|
lightning_source.Beam(target, icon_state="lightning[rand(1,12)]", time = 5)
|
|
target.adjustFireLoss(LIGHTNING_BOLT_DAMAGE)
|
|
playsound(get_turf(user), 'sound/magic/lightningbolt.ogg', 50, TRUE)
|
|
if(ishuman(target))
|
|
var/mob/living/carbon/human/human_target = target
|
|
human_target.electrocution_animation(LIGHTNING_BOLT_ELECTROCUTION_ANIMATION_LENGTH)
|
|
to_chat(target, span_userdanger("The gods have punished you for your sins!"), confidential = TRUE)
|