Skip to content

Commit

Permalink
[s] Fixes Ashwalker/cling exploits and a issue with ashwalkers not ge…
Browse files Browse the repository at this point in the history
…tting traits (ParadiseSS13#22871)

* Fixes Ashwalker/cling exploits

* ash walkers no longer can fire guns

* Contrabang suggestion -Removed duplicate action

Co-authored-by: Contrabang <[email protected]>

* Speedylegs is now called on species gain and loss

---------

Co-authored-by: Contrabang <[email protected]>
  • Loading branch information
ppi13 and Contrabang authored Oct 18, 2023
1 parent c35a0b7 commit 5ef03e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/mob/living/carbon/human/species/unathi.dm
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,20 @@
)

/datum/species/unathi/ashwalker/on_species_gain(mob/living/carbon/human/H)
..()
for(var/datum/action/innate/ignite/fire in H.actions)
fire.Remove(H)
var/datum/action/innate/ignite/ash_walker/fire = new()
fire.Grant(H)
RegisterSignal(H, COMSIG_MOVABLE_Z_CHANGED, PROC_REF(speedylegs))
speedylegs(H)

/datum/species/unathi/ashwalker/on_species_loss(mob/living/carbon/human/H)
..()
for(var/datum/action/innate/ignite/ash_walker/fire in H.actions)
fire.Remove(H)
UnregisterSignal(H, COMSIG_MOVABLE_Z_CHANGED)
speedylegs(H)

/datum/action/innate/ignite/ash_walker
desc = "You form a fire in your mouth, fierce enough to... light a cigarette."
Expand Down

0 comments on commit 5ef03e4

Please sign in to comment.