Skip to content

Commit

Permalink
small fix in sand psynergy
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Nov 9, 2023
1 parent 0711661 commit 5e3469d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/field_abilities/SandFieldPsynergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class SandFieldPsynergy extends FieldAbilities {
animation.onComplete.addOnce(async () => {
this.controllable_char.y += tween_shift;
this.controllable_char.toggle_collision(prev_collision_state);
if (allow_sand) {
if (allow_sand && this.data.map.sand_collision_layer > -1) {
this.controllable_char.sand_mode = true;
this.controllable_char.sprite.anchor.y = 0.6;
this.data.collision.change_map_body(this.data.map.sand_collision_layer);
Expand Down

0 comments on commit 5e3469d

Please sign in to comment.