From b008e13667573642d45dcbbacfca62651f873d5e Mon Sep 17 00:00:00 2001 From: laqieer Date: Mon, 20 Jul 2020 09:21:46 +0800 Subject: [PATCH] =?UTF-8?q?Bugfix:=20unit=20available=20detection=20for=20?= =?UTF-8?q?=E7=94=9F=E5=91=BD=E3=81=AE=E8=BC=9D=E3=81=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/buff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buff.c b/src/buff.c index 6edbb3ee..e1bf2540 100644 --- a/src/buff.c +++ b/src/buff.c @@ -1429,6 +1429,8 @@ void HealUnitsHPByTerrain(int unitIDSideBase) if(i == j) continue; skillUnit = GetUnit(j); + if(!isUnitAlive(skillUnit)) + continue; switch(getUnitPassiveSkillC(skillUnit)) { case PASSIVE_SKILL_C_SPARKLING_BOOST: