From acc29668bc1ab5f066e0838c77c3aa94e27349ff Mon Sep 17 00:00:00 2001 From: lvxinran Date: Mon, 12 Aug 2019 11:15:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E9=98=9FID=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/hero/HeroLogic.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java index 51d505821..51350b58b 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/HeroLogic.java @@ -998,11 +998,13 @@ public class HeroLogic { } //阵营光环加成 if(!isForce){ - List elementEffect = CombatLogic.getInstance().elementEffect(user,teamId); - Iterator it = elementEffect.iterator(); - while (it.hasNext()){ - int[][] effect = (int[][])it.next(); - combinedAttribute(effect,heroAllAttribute); + if(teamId!=0){ + List elementEffect = CombatLogic.getInstance().elementEffect(user,teamId); + Iterator it = elementEffect.iterator(); + while (it.hasNext()){ + int[][] effect = (int[][])it.next(); + combinedAttribute(effect,heroAllAttribute); + } } } calInteractAdd(heroAllAttribute);