Fix applying time tint to Pokemon when evolving

This commit is contained in:
Flashfyre 2024-01-07 23:58:36 -05:00
parent f0060e47a7
commit a2fbb91a77

View File

@ -85,8 +85,8 @@ export class EvolutionPhase extends BattlePhase {
[ this.pokemonSprite, this.pokemonTintSprite, this.pokemonEvoSprite, this.pokemonEvoTintSprite ].map(sprite => { [ this.pokemonSprite, this.pokemonTintSprite, this.pokemonEvoSprite, this.pokemonEvoTintSprite ].map(sprite => {
sprite.play(pokemon.getSpriteKey(true)); sprite.play(pokemon.getSpriteKey(true));
sprite.pipelineData['ignoreTimeTint'] = true;
sprite.setPipeline(this.scene.spritePipeline, { tone: [ 0.0, 0.0, 0.0, 0.0 ], hasShadow: false }); sprite.setPipeline(this.scene.spritePipeline, { tone: [ 0.0, 0.0, 0.0, 0.0 ], hasShadow: false });
sprite.pipelineData['ignoreTimeTint'] = true;
[ 'spriteColors', 'fusionSpriteColors' ].map(k => { [ 'spriteColors', 'fusionSpriteColors' ].map(k => {
if (pokemon.summonData?.speciesForm) if (pokemon.summonData?.speciesForm)
k += 'Base'; k += 'Base';