I'm lost. I have no clue why I'm getting an error with this:
#-------------------------------------------------------------------------- # * Get Added Value of Parameter #-------------------------------------------------------------------------- def param_plus(param_id) equips.compact.inject(super) {|r, item| r += item.params[param_id] } # Error on this line endThe error message reads:
The error occurs when I use a skill that has a state. I did a msgbox check of it and it looks like r is nil at some point. I don't know how it got to be nil, but maybe someone could clarify?
#-------------------------------------------------------------------------- # * Get Added Value of Parameter #-------------------------------------------------------------------------- def param_plus(param_id) equips.compact.inject(super) {|r, item| r += item.params[param_id] } # Error on this line endThe error message reads:
Can anyone help? I didn't even change anything related to that function or the function itself. :/
The error occurs when I use a skill that has a state. I did a msgbox check of it and it looks like r is nil at some point. I don't know how it got to be nil, but maybe someone could clarify?