From fb36e2564cd277ec17ea1f663ff7bea9360dc635 Mon Sep 17 00:00:00 2001 From: Ahmad Abu-Aysha Date: Thu, 7 Sep 2023 21:56:33 +1000 Subject: [PATCH] modified ProjectileFactory for testing purposes. --- .../com/csse3200/game/entities/factories/ProjectileFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/src/main/com/csse3200/game/entities/factories/ProjectileFactory.java b/source/core/src/main/com/csse3200/game/entities/factories/ProjectileFactory.java index 92da28717..cb02aa1fa 100644 --- a/source/core/src/main/com/csse3200/game/entities/factories/ProjectileFactory.java +++ b/source/core/src/main/com/csse3200/game/entities/factories/ProjectileFactory.java @@ -44,7 +44,7 @@ public static Entity createFireBall(Entity target, Vector2 destination, Vector2 .addComponent(new ColliderComponent().setSensor(true)) // This is the component that allows the projectile to damage a specified target. - .addComponent(new TouchAttackComponent(PhysicsLayer.ENGINEER, 1.5f, true)) + .addComponent(new TouchAttackComponent(PhysicsLayer.NPC, 1.5f, true)) .addComponent(new CombatStatsComponent(config.health, config.baseAttack)); projectile