[s] Martial arts granted by equipped items no longer persist through cloning. (#22684)

* Martial arts no longer persist through cloning

* Remove unnessecary var declarations

* Combo counter

---------

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-10-03 08:47:19 +02:00
committed by GitHub
parent 89214a1f59
commit 2672d02eb3
7 changed files with 38 additions and 16 deletions
+6 -4
View File
@@ -149,10 +149,12 @@
transfer_antag_huds(hud_to_transfer) //inherit the antag HUD
transfer_actions(new_character)
if(martial_art)
if(martial_art.temporary)
martial_art.remove(current)
else
martial_art.teach(current)
for(var/datum/martial_art/MA in known_martial_arts)
if(MA.temporary)
MA.remove(current)
else
MA.remove(current)
MA.teach(current)
if(active)
new_character.key = key //now transfer the key to link the client to our new body
SEND_SIGNAL(src, COMSIG_MIND_TRANSER_TO, new_character)