refactor: 优化玩家信息处理和注册检查逻辑
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

移除不必要的IsReg方法,简化玩家信息获取流程
调整抢先服玩家登录时间检查逻辑
This commit is contained in:
xinian
2026-02-23 21:50:57 +08:00
committed by cnb
parent 50a19b2ff9
commit b260fff8e8
3 changed files with 6 additions and 15 deletions

View File

@@ -310,7 +310,7 @@ func (f *FightC) resolveRound(p1Action, p2Action action.BattleActionI) {
}
// handleActiveSwitchAction 处理主动切换精灵动作
func (f *FightC) handleActiveSwitchAction(switchAction *action.ActiveSwitchAction, otherAction action.BattleActionI) {
func (f *FightC) handleActiveSwitchAction(_ *action.ActiveSwitchAction, otherAction action.BattleActionI) {
if skillAction, ok := otherAction.(*action.SelectSkillAction); ok {
if skillAction.SkillEntity != nil && skillAction.CD != nil {