From c3cbf956d0fda813d838901a9c785f4e8257787c Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 22 Jan 2025 18:40:49 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B3=91=EC=A2=85=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EA=B0=99=EC=9D=80=20=ED=82=A4=EA=B0=80=20?= =?UTF-8?q?=EC=97=AC=EB=9F=AC=EA=B0=9C=EC=9D=B8=20=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EB=8C=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GameUnitDetail.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GameUnitDetail.php b/hwe/sammo/GameUnitDetail.php index 9976b892..861b56c5 100644 --- a/hwe/sammo/GameUnitDetail.php +++ b/hwe/sammo/GameUnitDetail.php @@ -59,7 +59,12 @@ class GameUnitDetail implements iAction $this->reqConstraints = []; foreach($reqConstraints as $constraint){ $className = Util::getClassNameFromObj($constraint); - $this->reqConstraints[$className] = $constraint; + if(!key_exists($className, $this->reqConstraints)){ + $this->reqConstraints[$className] = $constraint; + } + else{ + $this->reqConstraints[] = $constraint; + } } $this->attackCoef = $attackCoef; $this->defenceCoef = $defenceCoef;