|
@@ -1042,6 +1042,8 @@ class FightProc {
|
|
|
$CurrentHeroId = ctx()->heros->CurrentHeroId;
|
|
|
//$hero = ctx()->heros->Dic->$CurrentHeroId;
|
|
|
|
|
|
+ list($addHp, $addAtk, $addDecDamage, $addEatFood) = ctx()->gates()->GetEnvovleBuffs(); // 启灵加成
|
|
|
+
|
|
|
$mo = GameConfig::hero_getItem($CurrentHeroId);
|
|
|
my_Assert($mo != null, ErrCode::err_const_no);
|
|
|
|
|
@@ -1063,8 +1065,8 @@ class FightProc {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $heroAttck = $heroBashAttack + $attck;
|
|
|
- $heroHp = $heroBashHp + $hp;
|
|
|
+ $heroAttck = $heroBashAttack + $attck + $addAtk; # 英雄基础攻击力+装备宝石词条攻击力+启灵攻击力
|
|
|
+ $heroHp = $heroBashHp + $hp + $addHp; # 英雄基础hp + 装备宝石词条hp + 启灵hp
|
|
|
|
|
|
$pag = ctx()->store->equipPag;
|
|
|
$gemDic = ctx()->store->gemEquip->$pag; //Dictionary<E_EquipPosition, Dictionary<int, Ins_Gem>>
|
|
@@ -1105,7 +1107,7 @@ class FightProc {
|
|
|
$heroHp += $parasVal_hp;
|
|
|
}
|
|
|
|
|
|
- $dec_demage = $mo->dec_demage;
|
|
|
+ $dec_demage = $mo->dec_demage + $addDecDamage; # 英雄基础减伤 + 启灵减伤
|
|
|
$bigHit_Val = $mo->bigHit_Val / 100;
|
|
|
$bigHit_rate = $mo->bigHit_rate / 100;
|
|
|
|