Skip to content

Commit

Permalink
Fix mind swap
Browse files Browse the repository at this point in the history
  • Loading branch information
v0id authored and v0id committed Apr 1, 2024
1 parent fea2d20 commit 5d32070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ protected override void Started(EntityUid uid, MassMindSwapRuleComponent compone
// Remove this actor from the pool of swap candidates before they go.
psionicPool.Remove(actor);

//if actor or other has MindSwappedComponent component then skip, if not that leads to stuck in body
if (HasComp<MindSwappedComponent>(actor) || HasComp<MindSwappedComponent>(other))
continue;

// Do the swap.
_mindSwap.Swap(actor, other);
if (!component.IsTemporary)
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Nyanotrasen/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
glimmerBurnLower: 50
glimmerBurnUpper: 110
- type: MassMindSwapRule
isTemporary: true

#- type: entity
# id: GlimmerWispSpawn
Expand Down

0 comments on commit 5d32070

Please sign in to comment.