Skip to content

TransformLayout

src.layouts.TransformLayout

Bases: NormalLayout

Transform card layout, introduced in Innistrad block.

Source code in src\layouts.py
944
945
946
947
948
949
950
951
952
953
954
955
956
class TransformLayout(NormalLayout):
    """Transform card layout, introduced in Innistrad block."""

    # Static properties
    is_transform: bool = True

    @auto_prop_cached
    def card_class(self) -> str:
        """Card class separated by card face, also supports special Ixalan lands."""
        if self.is_front:
            return LayoutType.TransformFront
        # Special Ixalan transform lands case
        return LayoutType.Ixalan if self.transform_icon == TransformIcons.COMPASSLAND else LayoutType.TransformBack

Functions

card_class() -> str

Card class separated by card face, also supports special Ixalan lands.

Source code in src\layouts.py
950
951
952
953
954
955
956
@auto_prop_cached
def card_class(self) -> str:
    """Card class separated by card face, also supports special Ixalan lands."""
    if self.is_front:
        return LayoutType.TransformFront
    # Special Ixalan transform lands case
    return LayoutType.Ixalan if self.transform_icon == TransformIcons.COMPASSLAND else LayoutType.TransformBack