From 81f86ceca96db1ff049dc465a84aea5f5f5aa93a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 Apr 2024 14:36:01 -0400 Subject: [PATCH] Code written to refactor db call out of effect costs. --- src/engine/db/handlers/dbEffectsResourceCostHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbEffectsResourceCostHandler.java b/src/engine/db/handlers/dbEffectsResourceCostHandler.java index c06b686b..dee88cf4 100644 --- a/src/engine/db/handlers/dbEffectsResourceCostHandler.java +++ b/src/engine/db/handlers/dbEffectsResourceCostHandler.java @@ -43,7 +43,7 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase { HashMap costMap = new HashMap<>(); try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT DISTINCT `IDString` FROM `static_power_effectcost` WHERE `IDString` = ?")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_power_effectcost` WHERE `IDString` = ?")) { preparedStatement.setString(1, effectID); ResultSet rs = preparedStatement.executeQuery();