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:
Ben10Omintrix
2024-02-26 18:09:00 +00:00
committed by GitHub
co-authored by Ghom
parent ec31a9927c
commit 2b156afc83
+2 -1
View File
@@ -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))