Fixes an umbrae bug (#21748)

* got the clamp

* minor underscore error
This commit is contained in:
BiancaWilkson
2023-07-24 09:59:42 -04:00
committed by GitHub
parent 9e52d81ff7
commit f55434752c
@@ -184,7 +184,7 @@
var/datum/spell_handler/vampire/V = custom_handler
var/datum/antagonist/vampire/vampire = user.mind.has_antag_datum(/datum/antagonist/vampire)
var/blood_cost = V.calculate_blood_cost(vampire)
vampire.bloodusable -= blood_cost
vampire.bloodusable = clamp(vampire.bloodusable - blood_cost, 0, vampire.bloodusable)// Vampires get a coupon if they have less than the normal blood cost
addtimer(VARSET_CALLBACK(src, should_recharge_after_cast, FALSE), 1 SECONDS) // this is needed so that the spell handler knows we casted it properly
/proc/shadow_to_animation(turf/start_turf, turf/end_turf, mob/user)