Two things:
Similarly to terrarium there is a 10 second invincibility to players who just joined such that they are not immediately killed.
Second, there is a combat log in dungeon as well as in the terrarium to prevent players from running away from combat.