Skip to content

EndFight

Ends the fight between two players.

Both clients drop the lock; OnFightEnd fires with "mode". Nothing happens when the two were not fighting. /peace ends every fight of the caller the same way.

EndFight(a, b)
Parameter Type
a number one player
b number the other

boolean - false when one of them is not connected

local function endDuel(a, b)
EndFight(a, b)
HealPlayer(a)
HealPlayer(b)
end

StartFight · OnFightEnd · the Combat group of the index