From e81ecd22f34bc9d04034931ed1729ab68043c2bf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 5 Aug 2024 17:11:40 +0800 Subject: [PATCH] 1 --- webapp/models/Hero.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webapp/models/Hero.php b/webapp/models/Hero.php index cade502d..56c1d9c5 100644 --- a/webapp/models/Hero.php +++ b/webapp/models/Hero.php @@ -461,14 +461,8 @@ class Hero extends BaseModel { } public static function abilityInfoAddition($baseAbility, $row){ - $info = array( - 'hp' => 0, - 'attack' => 0, - 'defence' => 0, - 'block' => 0, - 'critical' => 0 - ); - return $info; + $attr = array(); + return self::calcAbility($row['hero_id'], $attr); } public static function calcAbility($heroId, $attr) {