Fan2 support for dual || duplication extruder

Sorry for the bad hacking. Have no programming skills, but it works with my dual x-carriage prusa i2 :-)
When extruder 0 is active then fan1 is active and extruder > 0 then fan2.
When I switch to duplication mode it enables both fans.

Thanks