Skip to content

Commit

Permalink
[MIRROR] fixes runtime in punpun ai (#2143)
Browse files Browse the repository at this point in the history
* 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



* fixes runtime in punpun ai

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Ben10Omintrix <[email protected]>
Co-authored-by: Ghom <[email protected]>
  • Loading branch information
4 people authored Feb 28, 2024
1 parent ef3132a commit 8bdfaee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/datums/ai/monkey/monkey_controller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8bdfaee

Please sign in to comment.