fixes negative plasma on xenos (#20950)

* fixes negative plasma on xenos

* Update code/datums/spells/alien_spells/basetype_alien_spell.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
GDN
2023-04-27 18:28:32 +01:00
committed by GitHub
co-authored by Ryan
parent b7b45a0dbe
commit 80454ec8eb
@@ -12,9 +12,7 @@ Updates the spell's actions on use as well, so they know when they can or can't
var/obj/item/organ/internal/alien/plasmavessel/vessel = get_int_organ(/obj/item/organ/internal/alien/plasmavessel)
if(!vessel)
return
vessel.stored_plasma += amount
if(vessel.stored_plasma > vessel.max_plasma)
vessel.stored_plasma = vessel.max_plasma
vessel.stored_plasma = clamp(vessel.stored_plasma + amount, 0, vessel.max_plasma)
update_plasma_display(src)
for(var/datum/action/spell_action/action in actions)
action.UpdateButtonIcon()