Kblockstates crash every time actor selects "magic"!

Code:
KBlockStates ACE:232:in `between?': comparison of Symbol with 1 failed, ArgumentError
    from KBlockStates ACE:232:in `can_attack_enemies?'
    from KBlockStates ACE:246:in `enable?'
    from Window_SkillList:91:in `draw_item'
    from Window_Selectable:409:in `block in draw_all_items'
    from Window_Selectable:409:in `times'
    from Window_Selectable:409:in `draw_all_items'
    from Window_SkillList:119:in `refresh'
    from Window_SkillList:32:in `stype_id='
    from Scene_Battle:346:in `command_skill'
    from Window_Selectable:212:in `call'
    from Window_Selectable:212:in `call_handler'
    from Window_Command:136:in `call_ok_handler'
    from Window_Selectable:322:in `process_ok'
    from Window_Selectable:297:in `process_handling'
    from Window_Selectable:276:in `update'
    from Scene_Base:95:in `block in update_all_windows'
    from Scene_Base:93:in `each'
    from Scene_Base:93:in `update_all_windows'
    from Scene_Base:49:in `update_basic'
    from Scene_Battle:56:in `update_basic'
    from Scene_Base:41:in `update'
    from Scene_Battle:45:in `update'
    from Scene_Base:14:in `main'
    from SceneManager:23:in `run'
    from Mapshot:986:in `run'
    from Backtrace:10:in `block in <main>'

I get this error every time I select the "magic" command using @kyonides Kblockstates script.

The crash occurs before I even select a magic attack. Just selecting "magic" during battle always results in a crash.

This is not a problem in my main game but is in this game for some reason.

There is something different about this game that the script obviously does not like.

Can someone help me figure this out.
I have moved this thread from RGSS3 Scripts (RMVX Ace) to RGSSx Script Support. RGSS3 Scripts RMVX Ace is for releasing your VXAce scripts.
You're either using an outdated version or a modified one because the line numbers didn't match.

In my latest release, version 1.1.0, I found this:

Ruby:
class Window_BattleSkill
  def can_attack_enemies?(item)
    scope = item.scope
    if scope.between?(1, 6)
      return unless $game_troop.valid_targets?
      return if item.id == 1 and @actor.no_attack?
    elsif scope.between?(7, 10)
      return unless $game_party.valid_targets?
      return if @actor.no_healing? and item.healing?
    elsif scope == 11
      return if @actor.block_any_target?
      return if @actor.no_healing? and item.healing?
    end
    @actor.usable?(item)
  end

  def enable?(item)
    @actor && can_attack_enemies?(item)
  end
end

This means it's handling the skill's scope at that moment. (The default scripts treat items and skills pretty much the same way, that's why any related script also calls them "item" instead of skill.)
What did you change there?

Original thread: https://forums.rpgmakerweb.com/threads/kblockstates-crash-every-time-actor-selects-magic.161449/