Da Qiao Posted May 25, 2016 Posted May 25, 2016 As title said, how can I reduce Crusader's Grand Cross damage to self but keep the original damage to target? Im digging through src: skill.c, status.c, battle.c but cant find any clue on how to do this Quote
0 Playtester Posted May 25, 2016 Posted May 25, 2016 Most of the skill's damage come from the cast cost, though. https://github.com/rathena/rathena/blob/master/db/pre-re/skill_require_db.txt // SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,[...] 254,0,0,37:44:51:58:65:72:79:86:93:100,20,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //CR_GRANDCROSS Quote
0 Promise Posted May 25, 2016 Posted May 25, 2016 Im not surte, but i think that is in battle.c switch(skill_id) { case CR_GRANDCROSS: case NPC_GRANDDARKNESS: { struct Damage wd = battle_calc_weapon_attack(src,target,skill_id,skill_lv,mflag); ad.damage = battle_attr_fix(src, target, wd.damage + ad.damage, s_ele, tstatus->def_ele, tstatus->ele_lv) * (100 + 40 * skill_lv) / 100; if(src == target) { if(src->type == BL_PC) ad.damage = ad.damage / 2; else ad.damage = 0; } } break; Here is the GC damage, and the self damage is if(src->type == BL_PC) ad.damage = ad.damage / 2; // GC Damage / 2 Again, not sure. u should try. Quote
0 Da Qiao Posted May 26, 2016 Author Posted May 26, 2016 Im not surte, but i think that is in battle.c switch(skill_id) { case CR_GRANDCROSS: case NPC_GRANDDARKNESS: { struct Damage wd = battle_calc_weapon_attack(src,target,skill_id,skill_lv,mflag); ad.damage = battle_attr_fix(src, target, wd.damage + ad.damage, s_ele, tstatus->def_ele, tstatus->ele_lv) * (100 + 40 * skill_lv) / 100; if(src == target) { if(src->type == BL_PC) ad.damage = ad.damage / 2; else ad.damage = 0; } } break; Here is the GC damage, and the self damage is if(src->type == BL_PC) ad.damage = ad.damage / 2; // GC Damage / 2 Again, not sure. u should try. Most of the skill's damage come from the cast cost, though. https://github.com/rathena/rathena/blob/master/db/pre-re/skill_require_db.txt // SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,[...] 254,0,0,37:44:51:58:65:72:79:86:93:100,20,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //CR_GRANDCROSS Thank you, by combining your 2 answers, I can control GC damage now Quote
Question
Da Qiao
As title said, how can I reduce Crusader's Grand Cross damage to self but keep the original damage to target?
Im digging through src: skill.c, status.c, battle.c but cant find any clue on how to do this
3 answers 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.