diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-10-28 15:47:12 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-10-28 15:47:12 +0200 |
| commit | 798d9bc63a401807a036c98790c9e8b1e0fcc6f2 (patch) | |
| tree | ba3c2d4a61b31eab24b86d0d38204aa3cc59e9ee | |
| parent | ecba3f08e90cc448a17a69d5befed883aa5a0770 (diff) | |
| download | shrinker-798d9bc63a401807a036c98790c9e8b1e0fcc6f2.tar.gz shrinker-798d9bc63a401807a036c98790c9e8b1e0fcc6f2.zip | |
ignore ace buff heals
| -rw-r--r-- | worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -293,14 +293,14 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { // heal actor (since 2.9) if (t.type == "HealTarget" && t.payload.IsHero == 1 - && t.payload.Source != "Buff_SpawnStage_Recharge") // TODO LOL what? + && ["Buff_SpawnStage_Recharge", "Buff_Ace"].indexOf(t.payload.Source) != -1) // TODO LOL what? 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 - && t.payload.Source != "Buff_SpawnStage_Recharge") + && ["Buff_SpawnStage_Recharge", "Buff_Ace"].indexOf(t.payload.Source) != -1) t.target = participants.filter((p) => p.actor == t.payload.TargetActor && p.team == t.payload.TargetTeam)[0]; |
