Skip to content

Commit

Permalink
bugfix: Xeno cant evolve to queen (#6136)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidPotroh authored Nov 6, 2024
1 parent fceaa15 commit cd8cafc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/datums/spells/alien_spells/evolve.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@


/obj/effect/proc_holder/spell/alien_spell/evolve/can_cast(mob/living/carbon/alien/user, charge_check, show_message)
if(!..())
return FALSE

if(!user.can_evolve)
if(show_message)
to_chat(user, span_warning("We have nowhere to evolve further!"))
Expand Down Expand Up @@ -118,11 +121,15 @@


/obj/effect/proc_holder/spell/alien_spell/evolve/queen/can_cast(mob/living/carbon/alien/user, charge_check, show_message)
if(!..())
return FALSE

if(user.queen_count >= user.queen_maximum)
if(show_message)
to_chat(user, span_warning("We already have a queen."))
return FALSE

return TRUE

/obj/effect/proc_holder/spell/alien_spell/evolve/queen/cast(list/targets, mob/living/carbon/alien/user)
..()
Expand Down

0 comments on commit cd8cafc

Please sign in to comment.