More bugfixes (and one Gen 8 addition) (#155)

* Added comment indicating unused method pbRefreshSceneMap
* Removed superfluous ending of Beak Blast's effect
* Fixed crash when playing an animation in the animation player
* Added SwSh Terrain effects
This commit is contained in:
Golisopod-User
2022-01-12 03:06:01 +05:30
committed by GitHub
parent 767a47d90f
commit ff465a78a6
6 changed files with 18 additions and 12 deletions

View File

@@ -70,7 +70,6 @@ class Battle::Battler
#=============================================================================
def pbBeginTurn(_choice)
# Cancel some lingering effects which only apply until the user next moves
@effects[PBEffects::BeakBlast] = false
@effects[PBEffects::DestinyBondPrevious] = @effects[PBEffects::DestinyBond]
@effects[PBEffects::DestinyBond] = false
@effects[PBEffects::Grudge] = false

View File

@@ -730,31 +730,23 @@ class PBAnimationPlayerX
end
# Create background colour sprite
@bgColor = ColoredPlane.new(Color.new(0, 0, 0), @viewport)
@bgColor.borderX = 64 if @inEditor
@bgColor.borderY = 64 if @inEditor
@bgColor.z = 5
@bgColor.opacity = 0
@bgColor.refresh
# Create background graphic sprite
@bgGraphic = AnimatedPlane.new(@viewport)
@bgGraphic.setBitmap(nil)
@bgGraphic.borderX = 64 if @inEditor
@bgGraphic.borderY = 64 if @inEditor
@bgGraphic.z = 5
@bgGraphic.opacity = 0
@bgGraphic.refresh
# Create foreground colour sprite
@foColor = ColoredPlane.new(Color.new(0, 0, 0), @viewport)
@foColor.borderX = 64 if @inEditor
@foColor.borderY = 64 if @inEditor
@foColor.z = 85
@foColor.opacity = 0
@foColor.refresh
# Create foreground graphic sprite
@foGraphic = AnimatedPlane.new(@viewport)
@foGraphic.setBitmap(nil)
@foGraphic.borderX = 64 if @inEditor
@foGraphic.borderY = 64 if @inEditor
@foGraphic.z = 85
@foGraphic.opacity = 0
@foGraphic.refresh