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;