WGL 1 month ago
parent
commit
bc25182306

+ 2 - 2
ActionTowerDefense/Assets/Scripts/Characters/PlayerController.cs

@@ -1604,14 +1604,14 @@ public class PlayerController : MoveCharacter
         for (int i = 0; i < attackController.attackMethod_summon.Length; i++)
         for (int i = 0; i < attackController.attackMethod_summon.Length; i++)
         {
         {
             AttackInfo attackInfo = attackController.attackMethod_summon[i].attackInfo;
             AttackInfo attackInfo = attackController.attackMethod_summon[i].attackInfo;
-            attackInfo.damage += (int)(gameManager.damage * gameManager.damageRate);
+            attackInfo.damage += gameManager.damage;
             attackInfo.criticalChance = gameManager.criticalChance;
             attackInfo.criticalChance = gameManager.criticalChance;
             attackInfo.lifesteal = gameManager.lifesteal;
             attackInfo.lifesteal = gameManager.lifesteal;
         }
         }
         for (int i = 0; i < attackController.attackMethod_march.Length; i++)
         for (int i = 0; i < attackController.attackMethod_march.Length; i++)
         {
         {
             AttackInfo attackInfo = attackController.attackMethod_march[i].attackInfo;
             AttackInfo attackInfo = attackController.attackMethod_march[i].attackInfo;
-            attackInfo.damage += gameManager.damage;
+            attackInfo.damage += (int)(gameManager.damage * gameManager.damageRate);
             attackInfo.criticalChance = gameManager.criticalChance;
             attackInfo.criticalChance = gameManager.criticalChance;
             attackInfo.lifesteal = gameManager.lifesteal;
             attackInfo.lifesteal = gameManager.lifesteal;
         }
         }