猫咪戏法修复bug

This commit is contained in:
hahwu 2025-04-16 18:59:23 +08:00
parent 4b74c69df4
commit 564c650a28
2 changed files with 3 additions and 2 deletions

View File

@ -350,10 +350,10 @@ func GetCatTrickType(Duartion int) int {
log.Debug("GetCatTrick err:%v", err)
return 1
}
for _, v := range data {
for k, v := range data {
D := gamedata.GetIntValue(v, "Duration")
if Duartion == D {
return gamedata.GetIntValue(v, "Type")
return GoUtil.Int(k)
}
}
return gamedata.GetIntValue(data, "Type")

View File

@ -496,5 +496,6 @@ func getLimitEventMsg(t int, e *LTEInfo) *msg.LimitEvent {
Cd: int32(Cd),
Mul: float32(Mul),
StartTime: int32(e.StartT),
Param: Param,
}
}