Vlue Combo script giving error

I have installed Vlue's Combo script, but as I am at a very early stage of planning, no combo skills exist yet.

However, even so, under certain conditions I get this error message.
upload_2018-5-12_8-48-43.png


line 154 is
Code:
    if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo
I assume this means that the script thinks at this point that it ought to be kicking in, can't find what it's looking for, and so throws an error.

The conditions under which this happens is when an actor is hit while using Guard. This is not 100% guaranteed, sometimes it does not happen. What I think (but cannot be sure about) is that when it does happen it is because of the way I have set up my Guard skill. I have given it a 20% chance for one turn that the actor will counter attack. [See EDIT below]

Is that explanation the only one? Will I have to choose between combo skills and an enhanced guard skill?
I await your answers with the keenest anticipation - and dread, as I don't want to have to choose either/or.

Thanks.

EDIT
I am now sure that it is counter attack which is the problem. I removed the counter attack from Guard, but I still have another actor with a passive ability to counter attack. When he is hit and counters, the error occurs.
Maybe replace 154-157 into this will solve it?
if user.actor?
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo
value += user.current_action.extra_damage
value *= item.combo_damage if item.is_a?(RPG::Skill)
end
end
It is saying there is no current_action for user.

Change this:
Code:
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo

to this:
Code:
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action and user.current_action.combo

edit: oops - the above might work too
@Isabella Ava It still threw the same error message. But thanks for the suggestion.

@Shaz Not sure what your "oops" referred to, but the line in your post now seems to have done the trick. Yaay! Who says choices are a good thing? Now I don't have to choose.
Thank you. Once more you've saved the day.
oops meant I posted before reading the post above. But I figured it wouldn't hurt to give you a second option, just in case 😉
@Shaz And a good thing you did.

Moderator note: Closing as query solved.

Original thread: https://forums.rpgmakerweb.com/threads/vlue-combo-script-giving-error.95178/