the actual fix

This commit is contained in:
Arkatos1
2019-05-24 03:40:19 +02:00
parent 4ff9f25e5e
commit 0a67689582
2 changed files with 6 additions and 8 deletions
+6 -2
View File
@@ -18,9 +18,13 @@
if(ranged_ability)
ranged_ability.add_ranged_ability(src, "<span class='notice'>You currently have <b>[ranged_ability]</b> active!</span>")
var/datum/changeling/changeling = mind.has_antag_datum(/datum/changeling)
//for when action buttons are lost and need to be regained, such as when the mind enters a new mob
var/datum/changeling/changeling = usr.mind.changeling
if(changeling)
changeling.regain_powers()
for(var/power in changeling.purchasedpowers)
var/datum/action/changeling/S = power
if(istype(S) && S.needs_button)
S.Grant(src)
//Should update regardless of if we can ventcrawl, since we can end up in pipes in other ways.
update_pipe_vision()