战斗血量bug
parent
d6cd2edb89
commit
5b5bf07eec
|
@ -160,7 +160,9 @@ function BattleLogic.AddRole(roleData)
|
||||||
local data = rolePool:Get()
|
local data = rolePool:Get()
|
||||||
data:Init(curUid, roleData)
|
data:Init(curUid, roleData)
|
||||||
objList:Add(curUid, data)
|
objList:Add(curUid, data)
|
||||||
BattleLogic.Event:DispatchEvent(BattleEventName.AddRole, data)
|
if not data.isDead then
|
||||||
|
BattleLogic.Event:DispatchEvent(BattleEventName.AddRole, data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleLogic.InitAggro()
|
function BattleLogic.InitAggro()
|
||||||
|
|
|
@ -60,7 +60,7 @@ function RoleLogic:Init(uid, data)
|
||||||
Passivity[id](self, args)
|
Passivity[id](self, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.isDead = false
|
self.isDead = self:GetRoleData(RoleDataName.Hp) == 0
|
||||||
self.Auto = true
|
self.Auto = true
|
||||||
self.IsDebug = false
|
self.IsDebug = false
|
||||||
self.enable = true
|
self.enable = true
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class BehaviorUtil {
|
||||||
CommonProto.FightData.Builder fightData = CommonProto.FightData.newBuilder();
|
CommonProto.FightData.Builder fightData = CommonProto.FightData.newBuilder();
|
||||||
for (TeamPosHeroInfo teamPosHeroInfo : teamPosHeroInfos) {
|
for (TeamPosHeroInfo teamPosHeroInfo : teamPosHeroInfos) {
|
||||||
Hero hero = user.getHeroManager().getHero(teamPosHeroInfo.getHeroId());
|
Hero hero = user.getHeroManager().getHero(teamPosHeroInfo.getHeroId());
|
||||||
if (hero == null || hero.getCurHp() == 0) {
|
if (hero == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
StringBuilder skillSb = new StringBuilder();
|
StringBuilder skillSb = new StringBuilder();
|
||||||
|
|
|
@ -190,7 +190,7 @@ public class FightDataUtil {
|
||||||
return skill;
|
return skill;
|
||||||
}
|
}
|
||||||
SSkillLogicVo sSkillLogicVo = SSkillLogicConfig.getsSkillLogicVo(Integer.valueOf(skillId));
|
SSkillLogicVo sSkillLogicVo = SSkillLogicConfig.getsSkillLogicVo(Integer.valueOf(skillId));
|
||||||
if (sSkillLogicVo != null) {
|
if (sSkillLogicVo != null && sSkillLogicVo.getSkillTargetVoList().size()>0) {
|
||||||
skill.rawset(1, LuaValue.valueOf(sSkillLogicVo.getCd()));
|
skill.rawset(1, LuaValue.valueOf(sSkillLogicVo.getCd()));
|
||||||
List<LuaValue> effectList = getEffect(sSkillLogicVo);
|
List<LuaValue> effectList = getEffect(sSkillLogicVo);
|
||||||
int size = effectList.size();
|
int size = effectList.size();
|
||||||
|
|
Loading…
Reference in New Issue