Fixed fireball trigger.

This commit is contained in:
genxium
2023-01-21 10:40:13 +08:00
parent 56d66a128a
commit ff24bea055
7 changed files with 6795 additions and 60 deletions

View File

@@ -484,6 +484,7 @@ func deriveOpPattern(currPlayerDownsync, thatPlayerInNextFrame *PlayerDownsync,
effDx, effDy = decodedInput.Dx, decodedInput.Dy
if decodedInput.BtnBLevel > prevBtnBLevel {
if chConfig.DashingEnabled && 0 > effDy {
// Checking "DashingEnabled" here to allow jumping when dashing-disabled players pressed "DOWN + BtnB"
patternId = 5
} else if _, existent := inAirSet[currPlayerDownsync.CharacterState]; !existent {
jumpedOrNot = true

View File

@@ -129,6 +129,7 @@ var Characters = map[int]*CharacterConfig{
}
}
} else if 5 == patternId {
// Dashing is already constrained by "FramesToRecover & CapturedByInertia" in "deriveOpPattern"
return 12
}
@@ -180,11 +181,11 @@ var Characters = map[int]*CharacterConfig{
}
}
} else if 2 == patternId {
if !currPlayerDownsync.InAir {
if 0 == currPlayerDownsync.FramesToRecover && !currPlayerDownsync.InAir {
return 11
}
} else if 3 == patternId {
if !currPlayerDownsync.InAir {
if 0 == currPlayerDownsync.FramesToRecover && !currPlayerDownsync.InAir {
return 10
}
}