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);