Auto-translated
However, it is technically more refined because it doesn't contain infinite loops that overload the computer.
In this script snippet, the loop starts upon contact and ends as soon as the monster or hero ceases to exist (usually, the loop only triggers once, so it doesn't heavily load the computer). The only thing that could spoil the effect is Break() in the combat script.