diff --git a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java index b666efa3b..78698f3d7 100644 --- a/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java +++ b/source/core/src/main/com/csse3200/game/components/tasks/bosstask/DemonBossTask.java @@ -331,6 +331,11 @@ private void applyAoeDamage(Array targets, int damage) { } } + /** + * Returns the closest human entity + * @param targets array of human entities within radius of 3 + * @return closest human entity + */ private Entity getClosestHuman(Array targets) { Entity closestEntity = null; float closestDistance = SMASH_RADIUS;