Skip to content

Commit

Permalink
docked pillars bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jjppof committed Jan 23, 2024
1 parent 2f9ac5f commit 3f57372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions base/field_abilities/FieldAbilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as _ from "lodash";
import {Button} from "../XGamepad";
import {DialogManager} from "../utils/DialogManager";
import {degree360} from "../magic_numbers";
import {Pushable} from "../interactable_objects/Pushable";

/**
* Defines and manages the usage of field psynergy.
Expand Down Expand Up @@ -215,6 +216,9 @@ export abstract class FieldAbilities {
if (!(target_object as InteractableObjects).enable && !this.works_on_disabled_target) {
continue;
}
if ((target_object as Pushable).docked) {
continue;
}
}
if (this.target_found_extra_check && !this.target_found_extra_check(target_object)) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion base/field_abilities/MoveFieldPsynergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class MoveFieldPsynergy extends FieldAbilities {
reverse_directions[this.cast_direction]
);
this.hand_sprite.animations.play(anim_key);
if (this.target_object && !(this.target_object as Pushable).docked) {
if (this.target_object) {
this.target_object.manage_filter(this.target_object.hue_filter, true);
this.target_hueshift_timer = this.game.time.create(false);
this.target_hueshift_timer.loop(5, () => {
Expand Down

0 comments on commit 3f57372

Please sign in to comment.