Elephants look dumb in relation to any type of unit.
They are only focused on destroying buildings and avoiding any kind of unity in your vision range. If the enemy has a house and 20 soldiers in front of that house, the elephant will try to pass the soldiers anyway, without causing any damage, will die without causing any damage on soldiers or house.
Elephants were used as war machines against infantry and mainly against cavalry. They were not machines for destroying buildings. It makes no historical sense.
The patch proposes that elephants give priority to attacking human (soldier and women) and then siege units, last buildings (defensive structures first).
I chose Human and Siege than Unit because I don’t want to chase war ships.
I change the attack range, 8 seems a bad number, it is too far from its target.
@Stan. There appears to be a bug in the elephant attack animation. After killing a unit, the elephant try attacks the same dead unit again, as a "half attack".
Also a complement to the D2575.