`return GetCaster()->GetTypeId() == TYPEID_PLAYER;` ? I take it this can't be in the db?