What do you mean by this question. I think there is many possibilties with this. Maybe he wants his unit to change into a agi hero, a int hero or maybe strength hero? is this what you meant?
If yes, make another unit based on the hero you want but with different attribute type and in triggers, if ability is casted, just replace units with the specified attirbute and vice versa.