[MIRROR] Fixes shapeshift transformation runtime (#1427)

* Fixes shapeshift transformation runtime (#54484)

Code improvement PR that changed this to use lazylists forgot to then remove the .Remove() part after.

As a result, this will runtime either when mob_spell_list is null, or when mob_spell_list only contains src as LAZYREMOVE nulls the list for Remove() to runtime afterwards.

Fixes all transformations where the above was the case, very specifically Vampires changing to bats and back.

* Fixes shapeshift transformation runtime

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2020-10-22 23:02:31 +01:00
committed by GitHub
co-authored by Timberpoes
parent 100b7522c7
commit a4b864b10e
@@ -27,7 +27,6 @@
/obj/effect/proc_holder/spell/targeted/shapeshift/cast(list/targets,mob/user = usr)
if(src in user.mob_spell_list)
LAZYREMOVE(user.mob_spell_list, src)
user.mob_spell_list.Remove(src)
user.mind.AddSpell(src)
if(user.buckled)
user.buckled.unbuckle_mob(src,force=TRUE)