We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3223a3 commit d92d2f2Copy full SHA for d92d2f2
Scripts/DamageCalc.gd
@@ -39,7 +39,7 @@ func ToKill(attackUnit, defendUnit, attackboxUp, armorboxUp, shieldboxUp, healin
39
40
#single instance spell damage bypasses traditional calculation to handle bonus shield damage
41
#DoT spells calculate based on proper instances of damageand use the traditional calculation instead
42
- if attackUnit.spell attackUnit.type in ["Ghost", "Disruptor", "Widowmine", "Battlecruiser"]:
+ if attackUnit.spell and attackUnit.type in ["Ghost", "Disruptor", "Widowmine", "Battlecruiser"]:
43
if defendUnit.type == "Protoss":
44
shields -= bonusDmg
45
shotsToKill = (health + max(shields, 0))/attack
0 commit comments