summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-10-21 15:44:45 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-10-21 15:44:45 +0200
commitecba3f08e90cc448a17a69d5befed883aa5a0770 (patch)
tree724feb909728b73561745b277ee6f8204f215c51
parent6597883892a23a54e9210d8289d19b2b0f955101 (diff)
downloadshrinker-ecba3f08e90cc448a17a69d5befed883aa5a0770.tar.gz
shrinker-ecba3f08e90cc448a17a69d5befed883aa5a0770.zip
fix heals givenrelease/2.19.0
-rw-r--r--worker.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker.js b/worker.js
index 24ad6c7..fe7f254 100644
--- a/worker.js
+++ b/worker.js
@@ -294,9 +294,9 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => {
if (t.type == "HealTarget"
&& t.payload.IsHero == 1
&& t.payload.Source != "Buff_SpawnStage_Recharge") // TODO LOL what?
- t.target = participants.filter((p) =>
- p.actor == t.payload.TargetActor
- && p.team == t.payload.TargetTeam)[0];
+ t.actor = participants.filter((p) =>
+ p.actor == t.payload.Actor
+ && p.team == t.payload.Team)[0];
// heal target (since 2.9)
if (t.type == "HealTarget"
&& t.payload.TargetIsHero == 1