WGL 2 meses atrás
pai
commit
1844e68497

+ 1 - 8
ActionTowerDefense/Assets/Scripts/Characters/MoveCharacter.cs

@@ -299,14 +299,7 @@ public class MoveCharacter : Character
         hp -= damageData;
 
         //敌方士兵受起手式伤害/我方士兵受伤 闪白
-        if(attackFrom.CompareTag("Demonic") && attackInfo.attackMethod_Type == AttackMethod_Type.Attack_Summon)
-        {
-            beHitTrigger.JudgeTurnWhite(true, this);
-        }
-        else
-        {
-            beHitTrigger.JudgeTurnWhite(false, this);
-        }
+        beHitTrigger.JudgeTurnWhite(attackInfo.isDemSummon, this);
 
         //击中特效(如果有的话)
         if (attackInfo.effect)