Da Qiao Posted May 25, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 05/23/16 Last Seen: July 14, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 Playtester Posted May 25, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 3 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Promise Posted May 25, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 386 Reputation: 38 Joined: 04/28/13 Last Seen: March 22, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Da Qiao Posted May 26, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 05/23/16 Last Seen: July 14, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.