SZAND\msx_2 1 year ago
parent
commit
52af479f06
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Cook.cs

+ 3 - 3
ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Cook.cs

@@ -8,7 +8,7 @@ public class Spirits_Cook : MonoBehaviour
     public GameObject attributeUpEffect;
     public float reductionDegree;
     public float reductionTime;
-    private List<MoveCharacter> mcs = new List<MoveCharacter>();
+    public List<MoveCharacter> mcs = new List<MoveCharacter>();
 
     private void OnTriggerEnter(Collider other)
     {
@@ -28,7 +28,7 @@ public class Spirits_Cook : MonoBehaviour
         if (other.gameObject.layer == 6 || other.gameObject.layer == 7)
         {
             MoveCharacter mc = other.GetComponentInParent<MoveCharacter>();
-            if (!mc.isDamageReduction)
+            if (mc.isDamageReduction)
             {
                 mc.DamageReductionStateToOff(reductionTime);
             }
@@ -39,7 +39,7 @@ public class Spirits_Cook : MonoBehaviour
     {
         foreach(MoveCharacter mc in mcs)
         {
-            if (!mc.isDamageReduction)
+            if (mc.isDamageReduction)
             {
                 mc.DamageReductionStateToOff(reductionTime);
             }