mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-20 14:16:26 -04:00
Merge branch 'keyframe-super-ghostbusters' into 'main'
Fix for doubled effect keyframes Closes #2107 See merge request cable-mc/cobblemon!2436
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
- Fixed Kingambit moving its legs while walking
|
||||
- Various Structure fixes
|
||||
- Fixed shiny pokemon under certain circumstances forgetting taught TMs
|
||||
- Fixed certain Pokémon sounds sometimes being doubled when played at specific times in their animations
|
||||
|
||||
### Developer
|
||||
- Fixed wrong order of operations in the code flow prior to the `FOSSIL_REVIVED` event causing pokemon to appear without entity link
|
||||
|
||||
+2
-2
@@ -262,9 +262,9 @@ data class BedrockAnimation(
|
||||
fun applyEffects(entity: Entity?, state: PosableState, previousSeconds: Float, newSeconds: Float) {
|
||||
val effectCondition: (effectKeyframe: BedrockEffectKeyframe) -> Boolean =
|
||||
if (previousSeconds > newSeconds) {
|
||||
{ it.seconds >= previousSeconds || it.seconds <= newSeconds }
|
||||
{ it.seconds >= previousSeconds || it.seconds < newSeconds }
|
||||
} else {
|
||||
{ it.seconds in previousSeconds..newSeconds }
|
||||
{ it.seconds >= previousSeconds && it.seconds < newSeconds }
|
||||
}
|
||||
|
||||
effects.filter(effectCondition).forEach { it.run(entity, state) }
|
||||
|
||||
Reference in New Issue
Block a user