Enums updating, but then reverting

so Im trying to change the card types, which are enums, in code, I dont know why it will change when I put it in a for loop but when I directly change it it will change and then go right back to the default why is that.alt text

heres the forloop code

  for (int i = 0; i < pannelTransform.childCount; i++ )
        {
            pannelTransform.GetChild(i).GetComponent<CardBehaviour>().cardState = CardStates.INPLAY;
            if( pannelTransform.GetChild(i).GetComponent<CardBehaviour>().cardOwner != BattleManager.activePlayer)
            {
                 pannelTransform.GetChild(i).GetComponent<CardBehaviour>().cardTypeInfo = CardTypes.COUNTER;
            }
        }

found the issue another code was overriding it