|
|
@@ -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);
|
|
|
}
|