Hime Draw Magic Error

I've been trying to get Hime's Draw Magic scripit work (with Magic Units), but if i cancel the draw while in battle, it gives this error: script 'window_skilllist' line 81: nomethoderror occurred.

undefined method 'last_skill' for nil:nilclass. Any idea how to fix this?
Please link to the scripts you're using, we can't help you without that knowledge
Please link to the scripts you're using, we can't help you without that knowledge
Yanfly's Ace Battle Engine with elemental pop-ups, Enemy Target and Core Engine. 

Yami's Basic Module and Overlay script.

Hime's Global Common Events, Follower Event Touch, Magic Units, Junction and Draw Magic, with Command Setup.

Victor Basic and Victor Lighting.

Uh... would you like me to create direct links to the scripts or is it possible to work with this knowledge?
Uh... would you like me to create direct links to the scripts or is it possible to work with this knowledge?
Yes, that's why I said link to the scripts and not name them - we need to check how the scripts are written, and we don't have time to search for every obscure script through the entire internet ;-)
Yes, that's why I said link to the scripts and not name them - we need to check how the scripts are written, and we don't have time to search for every obscure script through the entire internet ;-)
Understood : -D Just a moment, i'll be putting them here at some point today 🙂
Yanfly ace battle engine:

https://dl.dropboxusercontent.com/u/17078211/Scripts/YEA/Ace_Battle_Engine.rb

Element pop-ups:

https://raw.githubusercontent.com/Archeia/YEARepo/master/Battle/Element_Popups.rb

Enemy target info:

https://raw.githubusercontent.com/Archeia/YEARepo/master/Battle/Enemy_Target_Info.rb

Ace Core Engine:

https://raw.githubusercontent.com/Archeia/YEARepo/master/Core/Ace_Core_Engine.rb

Yami's Basic Module:

https://raw.githubusercontent.com/suppayami/rmvxa-collection/master/yami-script-ace/01%20-%20BasicModule.txt

Yami's Overlay:

https://raw.githubusercontent.com/suppayami/rmvxa-collection/master/yami-script-ace/13%20-%20Overlay%20Mapping.txt

Hime's Global Common events:

http://himeworks.com/redirect.php?type=script&name=Global_Common_Events

Hime's Follower event touch:

http://himeworks.com/redirect.php?type=script&name=Follower_Event_Touch

Hime's Magic Units:

https://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Magic_Units.txt

Hime's Junction Magic:

https://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Junction_Magic.txt

Hime's Draw Magic:

https://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Draw_Magic.txt

Hime's Command Setup:

https://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Tsuki_Command_Setup.txt

Aand... there are the Victor scripts Basic Module and Light effects... but it seems i can't find a working link to those scripts 😳 Too much traffic...
Yes, that's why I said link to the scripts and not name them - we need to check how the scripts are written, and we don't have time to search for every obscure script through the entire internet ;-)
Links above ^

Edit: I'm beginning to think it's the Hime's Command Setup that's causing trouble, since after removing it, the Draw magic script seems to be working. I'd rather have the draw skill as a command than a special skill though.
Labyrinthine, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hime-draw-magic-error.36029/