Skip to content

Commit

Permalink
Allow calculateLikelyDamage to work for players that have not yet j…
Browse files Browse the repository at this point in the history
…oined a map.

GitOrigin-RevId: e2a3e313bb2790222c195e9e9cd9bbcef2d04920
  • Loading branch information
cpojer committed Oct 29, 2024
1 parent 5c8c5db commit ef8e674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion athena/lib/calculateLikelyDamage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function calculateLikelyDamage(
);
return isUnit(entityB) &&
entityB.statusEffect === UnitStatusEffect.Poison &&
map.getPlayer(unitA).activeSkills.has(Skill.BuyUnitAcidBomber)
map.maybeGetPlayer(unitA)?.activeSkills.has(Skill.BuyUnitAcidBomber)
? Math.floor(damage * (1 + PoisonSkillPowerDamageMultiplier))
: damage;
}
Expand Down

0 comments on commit ef8e674

Please sign in to comment.