Byrth / Lua-Byrth

Lua Addons and Scripts
3 stars 2 forks source link

[GearSwap] Command is broken when no target (JP client) #326

Closed nekonok closed 9 years ago

nekonok commented 9 years ago

When do /ma スロウ <t> with no target, corrupted strings are sent. set_language('japanese') is called in get_sets(). This is the log.

>> /ma "繧ケ繝ュ繧ヲ"  <t>                                                                     
(コマンドでエラーがあったようです…)                                                      
GearSwap (Debug Mode): Entering pretarget                                                   
GearSwap (Debug Mode): Change target was used to pick an invalid target (/ma "スロウ"  <t>) 

But when failed casting magics for can not use it in current job, this is not broken. There is a difference that magic name is surrounded by double-quote.

GearSwap (Debug Mode): Unable to execute command. You do not have access to that spell (グラビデ) 
GearSwap (Debug Mode): Entering filtered_action                                                   
>> /ma グラビデ <t>                                                                               
(コマンドでエラーがあったようです…)                                                            
Byrth commented 9 years ago

Thank you, this should be fixed now on -dev. I will push it live soon.