Closed canerksk closed 3 months ago
It's silly but it was changed on Sphere 0.52 version, and it never touched after that day but it's not a big deal, as Weapons also work fine with m_itArmor. Because most of the global checks done with m_itArmor for weapons and armors. Like repairable armor and weapons check with m_itArmor or any variable like HITPOINTS, MAXHITS return the m_itArmor value for weapons and armors, so typing m_itWeapon or m_itArmor doesn't not make any difference in that case.
As It's not a bug, I am closing it, but if you think that causes any issue, you can re-open (or ask someone to re-open from discord) or just create new issue about it and I can take a look for it.
While calculating the damage of the weapon in this field, ATTR_MAGIC
iVal += g_Cfg.GetSpellEffect( SPELL_Enchant, m_itArmor.m_spelllevel );
surplus value has been calculated. Here SPELL_Enchant, m_itArmor.m_spelllevel The value of m_itArmor.m_spelllevel is taken as basis. Doesn't this value take the Morey value of the armor? Shouldn't this be m_itWeapon.m_spelllevel?
in summary;
Shouldn't this section change like this?
m_itArmor.m_spelllevel
->m_itWeapon.m_spelllevel