I thought theres a trigger function for that in WEU, but if u dont have that, the only way is to replace the hero with a hero with another attack type (and then make alot of vars for the old heroe's exp, lvl, hp, mana, stats, items etc
or Jass, but dont ask me bout that