Depends on what kind of buff, if u cast the buffs with triggers then u dont need to worry about that, if u change unit properties through triggers then u need to somehow find out if the unit has the buff, if it does, remove all of its effects and then apply the new effects.