From 86abc4e667620ac246c2e652e5c5fdd9c655e7bc Mon Sep 17 00:00:00 2001 From: wrenge Date: Fri, 27 Jan 2023 16:13:35 +0300 Subject: [PATCH] Added support for bhl_native_class token --- src/codegen.inc.php | 2 ++ 1 file changed, 2 insertions(+) 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(); }