protected override int GetActualSpellIndex()
{
if (objInt().isEnchanted==true)
{
/* Per uwspecs
* Most objects seem to use spells 256-320 (add 256) if the enchantment
* number is in the range 0-63, otherwise they add 144 to use spells 208 and
* up. Healing fountains, however, don't use a correction at all.
*/
if (objInt().Link-512<63)
{
return objInt().Link-512+256;
}
else
{
return objInt().Link-512+144;
}
}
else
{
return SpellObjectLink-256;
}
}