getArtifactDataFromModifier(modifier) {
    let artifactData;
    if (modifier != null && modifier.getIsFromArtifact()) {
      const sourceCard = modifier.getSourceCard();
      // get information from source card
      if (sourceCard instanceof SDK.Artifact) {
        artifactData = {
          card: sourceCard,
          durability: modifier.getDurability(),
          maxDurability: modifier.getMaxDurability(),
        };
      }
    }
    return artifactData;
  }
Returns an artifact data object given a modifier, or null if this modifier is not linked to an artifact.
@param {SDK.Modifier} modifier
@returns {Object|null}