Skip to content

Commit

Permalink
Merge pull request #2326 from Jesuszilla/new-feats
Browse files Browse the repository at this point in the history
fix: Bindtime of 1 immediately after PosSets not unbinding in time
  • Loading branch information
K4thos authored Feb 16, 2025
2 parents e0798a3 + a0f34df commit afdf84e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/char.go
Original file line number Diff line number Diff line change
Expand Up @@ -8363,10 +8363,18 @@ func (c *Char) tick() {
if c.isBound() {
if bt := sys.playerID(c.bindToId); bt != nil && !bt.pause() {
c.bindTime -= 1
// Fixes Binds of 1 immediately after PosSets (MUGEN 1.0/1.1 behavior)
if c.bindTime <= 0 {
c.bindToId = -1
}
}
} else {
if !c.pause() {
c.bindTime -= 1
// Fixes Binds of 1 immediately after PosSets (MUGEN 1.0/1.1 behavior)
if c.bindTime <= 0 {
c.bindToId = -1
}
}
}
}
Expand Down

0 comments on commit afdf84e

Please sign in to comment.