Both Es, obviously. One says : If (condition is met), your turn ends (which is after the attack deals damage).
Other E says : If this attack deals damage, (something).
First E was played by the guy that played the attack. Second E is by the one doing the damage.
Which goes through?