SetHeroLootable(<enemy hero name>, nil) should do just that, but I haven't checked.
Сценарии:
"Холм мертвецов"
"Священное древо"
New here? I'm Roha — want a quick tour?
SetHeroLootable(<enemy hero name>, nil) should do just that, but I haven't checked.