diff --git a/Service/Application.Web/Controllers/Pub/FightController.cs b/Service/Application.Web/Controllers/Pub/FightController.cs index 3243087..ad665ef 100644 --- a/Service/Application.Web/Controllers/Pub/FightController.cs +++ b/Service/Application.Web/Controllers/Pub/FightController.cs @@ -233,7 +233,9 @@ public class FightController : ControllerBase otAttr = await _attrService.GetUserAttrModel(fight.mainId, fight.scene); } - int cool = FightTool.GetFightCool(myAttr.agility, otAttr.agility); //冷却时间 + //获取个人负面 + var myLoad = await _attrService.GetUserLoadState(userId); + int cool = FightTool.GetFightCool(myAttr.agility, otAttr.agility, myLoad); //冷却时间 FightResultModel fightResult = new FightResultModel() { @@ -315,8 +317,7 @@ public class FightController : ControllerBase //获取个人药品栏 var myDrug = await _attrService.GetUserDrug(userId); - //获取个人负面 - var myLoad = await _attrService.GetUserLoadState(userId); + int exitCopper = otAttr.lev * 5; //退出战斗需要的铜贝 string fightKey = await _fightService.SetFightLock(userId);