diff --git a/athena/lib/calculateLikelyDamage.tsx b/athena/lib/calculateLikelyDamage.tsx index f356aee4..5935f5c9 100644 --- a/athena/lib/calculateLikelyDamage.tsx +++ b/athena/lib/calculateLikelyDamage.tsx @@ -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; }