public void update(float deltaT) {
        boolean tempButton = false;
        boolean tempSelected = true;
        if (owner instanceof SelectableUnit) {
            tempSelected = ((SelectableUnit) owner).isSelected();
        }
        if (abilityButton != null) {
            tempButton = abilityButton.isPressed();
        }
        if ((Gdx.input.isKeyPressed(hotKey) || tempButton) && !trigger && enabled && tempSelected) {
            trigger = true;
            action();
            logger.debug("Ability action!");
        } else {
            if (!Gdx.input.isKeyPressed(hotKey) && !tempButton) {
                trigger = false;
            }
        }
        update_1(deltaT);
    }