mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
fixes runtime in punpun ai (#81659)
## About The Pull Request punpun has a small chance to gain a new ai, which would re-add an existing element causing signals override runtimes ## Why It's Good For The Game fixes runtime in punpun AI ## Changelog N/A Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,8 @@ have ways of interacting with a specific mob and control it.
|
||||
return AI_CONTROLLER_INCOMPATIBLE
|
||||
|
||||
var/mob/living/living_pawn = new_pawn
|
||||
living_pawn.AddElement(/datum/element/relay_attackers)
|
||||
if(!HAS_TRAIT(living_pawn, TRAIT_RELAYING_ATTACKER))
|
||||
living_pawn.AddElement(/datum/element/relay_attackers)
|
||||
RegisterSignal(new_pawn, COMSIG_ATOM_WAS_ATTACKED, PROC_REF(on_attacked))
|
||||
RegisterSignal(new_pawn, COMSIG_LIVING_START_PULL, PROC_REF(on_startpulling))
|
||||
RegisterSignal(new_pawn, COMSIG_LIVING_TRY_SYRINGE, PROC_REF(on_try_syringe))
|
||||
|
||||
Reference in New Issue
Block a user