correct script doesn't work when card has more than one subtype, fix to use genSubTypeFlags