diff --git a/src/codegen.inc.php b/src/codegen.inc.php index a2994a8..c0c1576 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -184,6 +184,8 @@ function cs_simple_type(\mtgType $type) } throw new Exception("Unknown type '{$type}'"); } + if($type->hasToken("bhl_native_class")) + return $type->getToken("bhl_native_class"); return $type->getName(); }