I'd like to crate two passive skills that modify the skill Bash, but I don't know where to modify the source. I've already created the skills themselves, with sprites, descriptions and whatnot, but they have no effect.
The first one, Battle Heal, goes up to level 5 and makes Bash heal the user for SkillLv*10% of the damage done.
The second one, Precise Hit, also goes up to level 5 and makes Bash ignore SkillLv*10% of the target's defense.
Can anyone help me? Any tip would be appreciated. Thanks!
I figured out I could do something like what is done for Fatal Blow:
if( sd && skilllv > 5 && pc_checkskill(sd,SM_FATALBLOW)>0 ){
//TODO: How much % per base level it actually is?
sc_start(bl,SC_STUN,(5*(skilllv-5)+(int)sd->status.base_level/10),
skilllv,skill_get_time2(SM_FATALBLOW,skilllv));
} But how would I go about restoring HP or ignoring defense instead of adding a stun chance?