1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-02-16 02:45:48 +08:00
committed by cnb
parent c26ecff9f2
commit 3d7682732c

View File

@@ -32,6 +32,16 @@ func (h Controller) PetMelee(data *fight.StartPetWarInboundInfo, c *player.Playe
}
}
if foi.Reason == info.BattleOverReason.PlayerOffline {
if foi.WinnerId == c.GetInfo().UserID {
p.MessWin(false)
} else {
c.MessWin(false)
}
}
}) ///开始对战,房主方以及被邀请方
return err <= 0