Skip to content

Commit

Permalink
fixing some shadow issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Jun 23, 2023
1 parent c0bb14c commit ed017c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions base/ControllableChar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ export abstract class ControllableChar {
.to(tween_obj, duration, Phaser.Easing.Linear.None, true)
.onComplete.addOnce(() => {
if (this.shadow) {
this.shadow.x = dest_char.x;
this.shadow.y = dest_char.y;
this.update_shadow();
if (!keep_shadow_hidden) {
this.shadow.visible = true;
}
Expand Down
3 changes: 3 additions & 0 deletions base/field_abilities/RevealFieldPsynergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export class RevealFieldPsynergy extends FieldAbilities {
0,
-1
);
this.waving_tween.onUpdateCallback(() => {
this.controllable_char.update_shadow();
});
this.game.add
.tween(this.reveal_wave_filter)
.to(
Expand Down

0 comments on commit ed017c6

Please sign in to comment.