A simple solution would be to add a requirement to the item ability bash. You make a dummy unit which is the requirement for this ability. Once a hero gains a skill with bash the dummy unit for this player gets removed and the bash item ability will no longer work. This is only possible, if every player only has one hero, because the requirement is for every item of this player.