If the trap was triggered because of a card effect (for example when a Champion uses an attack that pushes the defender into a trap), the damage is considered to be caused by the source of that effect. This may result in Levelling Up Champions as normal.