During the fight, heroes enter the field according to their orders and only 3 heroes can be on the stage at the same time. When one dies, the next one fills his/her place.
When time is up or the last hero in one party dies, the fight is over. The party who has more heroes alive wins. If they have the same number of living heroes, the one with more HP wins.