If the function returns 1 (player is alive), then "==" will return 1, and this 1 will be added to n; otherwise, it will return nil. But nil cannot be added, and the "or" operation replaces it with 0.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4