Skip to content

Commit

Permalink
Fix pr #340: Fix issue #336: Mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Jan 28, 2025
1 parent 3158854 commit 3ba8b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/libs/combat/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ export const mirror = (
if (!effect.isNew && !effect.castThisRound) {
// Find all negative effects on the caster
const negativeEffects = usersEffects.filter(
(e) => e.targetId === effect.userId && isNegativeUserEffect(e),
(e) => e.targetId === effect.creatorId && isNegativeUserEffect(e),
);

// Apply each negative effect to the target
Expand All @@ -1566,7 +1566,7 @@ export const mirror = (
type: negEffect.type,
id: nanoid(),
targetId: effect.targetId,
userId: effect.userId,
creatorId: effect.creatorId,
isNew: true,
castThisRound: true,
createdRound: effect.createdRound,
Expand Down

0 comments on commit 3ba8b02

Please sign in to comment.