This commit is contained in:
parent
64368b62bc
commit
0c28da75b4
|
@ -788,10 +788,10 @@ export abstract class BattleAnim {
|
||||||
targetSprite.pipelineData["tone"] = [ 0.0, 0.0, 0.0, 0.0 ];
|
targetSprite.pipelineData["tone"] = [ 0.0, 0.0, 0.0, 0.0 ];
|
||||||
targetSprite.setAngle(0);
|
targetSprite.setAngle(0);
|
||||||
if (!this.isHideUser() && userSprite) {
|
if (!this.isHideUser() && userSprite) {
|
||||||
userSprite.setVisible(true);
|
this.user?.getSprite().setVisible(true); // using this.user to fix context loss due to isOppAnim swap (#481)
|
||||||
}
|
}
|
||||||
if (!this.isHideTarget() && (targetSprite !== userSprite || !this.isHideUser())) {
|
if (!this.isHideTarget() && (targetSprite !== userSprite || !this.isHideUser())) {
|
||||||
targetSprite.setVisible(true);
|
this.target?.getSprite().setVisible(true); // using this.target to fix context loss due to isOppAnim swap (#481)
|
||||||
}
|
}
|
||||||
for (const ms of Object.values(spriteCache).flat()) {
|
for (const ms of Object.values(spriteCache).flat()) {
|
||||||
if (ms) {
|
if (ms) {
|
||||||
|
|
Loading…
Reference in New Issue