Browse Source

修复升级后落地伤害未加上的bug

SZAND\msx_2 3 months ago
parent
commit
535a9d3a4b

+ 2 - 0
ActionTowerDefense/Assets/Scripts/Characters/SoldierBuff.cs

@@ -52,9 +52,11 @@ public class SoldierBuff : MonoBehaviour
                 {
                 {
                     AttackInfo.ShotDown sd = ai.shotDown;
                     AttackInfo.ShotDown sd = ai.shotDown;
                     sd.landingDamage += damage;
                     sd.landingDamage += damage;
+                    ai.shotDown = sd;
                     break;
                     break;
                 }
                 }
             }
             }
+            ac.attackMethod[i].attackInfo = ai;
         }
         }
     }
     }
 }
 }

+ 1 - 0
ActionTowerDefense/Assets/Scripts/Rougue/SoldierLevelRecord.cs

@@ -140,6 +140,7 @@ public class SoldierLevelRecord : MonoBehaviour
                 sb.AddMarchAttack(seb[i].marchAttack);
                 sb.AddMarchAttack(seb[i].marchAttack);
                 sb.AddHP(seb[i].hp);
                 sb.AddHP(seb[i].hp);
                 sb.AddArmor(seb[i].armor);
                 sb.AddArmor(seb[i].armor);
+                sb.AddShootDownDamage(seb[i].shootDownDamage);
                 break;
                 break;
             }
             }
         }
         }