good day.. i customized the turn undead skill for it to be useable on any race.. but i want it to consume gemstones whenever the target is not an undead race or element.. can someone help me on this? this is the block which makes the skill require items in specific condition.. i don't know the code to be added for the gemstone requirement..
case PR_TURNUNDEAD:
if( itemid_isgemstone(skill->db[idx].itemid) && !battle->check_undead(tstatus->race, tstatus->def_ele) );
continue;
break;
the code in red doesn't seem to work.. it says after rebuilding tstatus is no a member of interference.. can someone help me on the code? thanks..
case PR_TURNUNDEAD:
if( itemid_isgemstone(skill->db[idx].itemid) && !battle->check_undead(tstatus->race, tstatus->def_ele) );
continue;
break;
the code in red doesn't seem to work.. it says after rebuilding tstatus is no a member of interference.. can someone help me on the code? thanks..