Explorar el Código

修复气功波杀人爆魂事件

SZAND\msx_2 hace 10 meses
padre
commit
b836da0d41
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      ActionTowerDefense/Assets/Scripts/Conduct/WavePowerSkill.cs

+ 4 - 0
ActionTowerDefense/Assets/Scripts/Conduct/WavePowerSkill.cs

@@ -142,6 +142,10 @@ public class WavePowerSkill : MonoBehaviour
         if (beHitTrigger && beHitTrigger.owner.tag == "Enemy")
         {
             Enemy ene = other.GetComponentInParent<Enemy>();
+            if (ene.isDie)
+            {
+                return;
+            }
             switch (curMode)
             {
                 case mode.knockUp: