change: skill->castend_nodamage_id(src,src,TF_HIDING,1,tick,0x2);to: skill->castend_nodamage_id(src,src,AS_CLOAKING,3,tick,0x2);
even you put level 5 you will only cloak when you are in a walluse level 5
case SC_CLOAKING: //Avoid cloaking with no wall and low skill level. [skotlex]
//Due to the cloaking card, we have to check the wall versus to known
//skill level rather than the used one. [skotlex]
//if (sd && val1 < 3 && skill_check_cloaking(bl,NULL))
if( sd && pc->checkskill(sd, AS_CLOAKING) < 3 && !skill->check_cloaking(bl,NULL) )
return 0;
break;
case SC_CLOAKING:if( val2 ) break; //Avoid cloaking with no wall and low skill level. [Skotlex] //Due to the cloaking card, we have to check the wall versus to known //skill level rather than the used one. [Skotlex] //if (sd && val1 < 3 && skill_check_cloaking(bl,NULL)) if( sd && pc->checkskill(sd, AS_CLOAKING) < 3 && !skill->check_cloaking(bl,NULL) ) return 0; break;
skill.c
sc_start2(src, SC_CLOAKING, 100, 3, 1, skill->get_time(AS_CLOAKING, 3));
status.c
case SC_CLOAKING:if( val2 ) break; //Avoid cloaking with no wall and low skill level. [Skotlex] //Due to the cloaking card, we have to check the wall versus to known //skill level rather than the used one. [Skotlex] //if (sd && val1 < 3 && skill_check_cloaking(bl,NULL)) if( sd && pc->checkskill(sd, AS_CLOAKING) < 3 && !skill->check_cloaking(bl,NULL) ) return 0; break;
sc_start2(src, SC_CLOAKING, 100, 3, 1, skill->get_time(AS_CLOAKING, 3));
We use essential cookies to make this site work, and optional cookies to enhance your experience.