Quoted By:
New ability geared for doubles:
Trample - Whenever a pokémon with this ability attacks an enemy pokémon and that pokémon faints as a result, then any excess damage is dealt to an adjacent enemy pokémon.
- - -
If tripples it picks a random pokemon if the middle one fainted.
Also it does not recalculate the damage based on the new type matchup or stats or anything else, it simply takes the excess HP the pokemon you killed would have lost and removes that many HP from the pokémon next to it.
.