From 358a9d02f14ef87bf07617dd5e7a985cdf27e5df Mon Sep 17 00:00:00 2001 From: peblpebl Date: Thu, 9 May 2019 01:16:24 +0200 Subject: [PATCH] Sanqueen is assymetric Sanqueen code checks that she is alive before applying leech. However the check is sort of wrong, as the two sides takes turn to fight. So the to go will not see her as dead (yet) and apply heal. That heal will go to the next unit. However the second to go will see her as dead and not apply the heal to next unit. I dont see an easy solution with current code. 1) Either remove the check, so she always heal next unit (strange, but fair). 2) Stop removing dead units in subturns. --- batsim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batsim.js b/batsim.js index 01096aa..bcb4d83 100644 --- a/batsim.js +++ b/batsim.js @@ -5086,7 +5086,7 @@ function doTurn (A,D,turnA,turnD,side) { var initHp = D.setup[i].hp; D.setup[i].hp -= totalDamage; turndmg += totalDamage; - if (atk.leech>0 && totalDamage>0 && A.setup[0].hp>0) { + if (atk.leech>0 && totalDamage>0) { if (retturn.self===undefined) retturn.self=getTurnData(A.setup.length,D.setup.length); retturn.self.buff.heal[0]+=Math.round(finalDamage*atk.leech); }