From 610c9b58018665bca511e72acde2e1648b7278f8 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Fri, 24 Mar 2023 14:46:16 -0400 Subject: [PATCH] fix typo --- Assignment 3/src/ca/cosc3p91/a2/util/ChallengeAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assignment 3/src/ca/cosc3p91/a2/util/ChallengeAdapter.java b/Assignment 3/src/ca/cosc3p91/a2/util/ChallengeAdapter.java index ea88c19..65d9750 100644 --- a/Assignment 3/src/ca/cosc3p91/a2/util/ChallengeAdapter.java +++ b/Assignment 3/src/ca/cosc3p91/a2/util/ChallengeAdapter.java @@ -35,7 +35,7 @@ public class ChallengeAdapter { .filter(b -> b instanceof DefenseBuilding) .map(b -> (DefenseBuilding) b) .forEach(d -> { - entityDefenseList.add(new ChallengeDefense<>((double) d.getDamage(), (double) b.getHealth())); + entityDefenseList.add(new ChallengeDefense<>((double) d.getDamage(), (double) d.getHealth())); }); return entityDefenseList;