is it possible to make it so that some statuses dont get dispelled on a player? please show me an example if you know how, thank you.
EDIT:
i think i found the area to add it in skill.c:
case SA_DISPELL:
if (flag&1 || (i = skill_get_splash(skillid, skilllv)) < 1)
{
clif_skill_nodamage(src,bl,skillid,skilllv,1);
if((dstsd && (dstsd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER)
|| (tsc && tsc->data[sC_SPIRIT] && tsc->data[sC_SPIRIT]->val2 == SL_ROGUE) //Rogue's spirit defends againt dispel.
|| rnd()%100 >= 50+10*skilllv
|| ( tsc && tsc->option&OPTION_MADOGEAR ) )//Mado Gear is immune to dispell according to bug report 49 [ind]
{
Since I'm trying to exclude a SC from being dispelled, I guess I should follow the format of Rogue's spirit? So can someone explain what the code in that condition means?
Question
sizenine
is it possible to make it so that some statuses dont get dispelled on a player? please show me an example if you know how, thank you.
EDIT:
i think i found the area to add it in skill.c:
Since I'm trying to exclude a SC from being dispelled, I guess I should follow the format of Rogue's spirit? So can someone explain what the code in that condition means?
(tsc && tsc->data[sC_SPIRIT] && tsc->data[sC_SPIRIT]->val2 == SL_ROGUE)
Edited by sizenineLink to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.