Skip to content

Commit d92d2f2

Browse files
authored
Update DamageCalc.gd
1 parent a3223a3 commit d92d2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/DamageCalc.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func ToKill(attackUnit, defendUnit, attackboxUp, armorboxUp, shieldboxUp, healin
3939

4040
#single instance spell damage bypasses traditional calculation to handle bonus shield damage
4141
#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"]:
42+
if attackUnit.spell and attackUnit.type in ["Ghost", "Disruptor", "Widowmine", "Battlecruiser"]:
4343
if defendUnit.type == "Protoss":
4444
shields -= bonusDmg
4545
shotsToKill = (health + max(shields, 0))/attack

0 commit comments

Comments
 (0)