Fixed itemdb elvmax issue caused by inherit

Special Thanks to Yommy, Haruna.

Signed-off-by: shennetsind <ind@henn.et>