Jump to content
  • 0

Reduce Grand Cross damage to self.


Da Qiao

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  05/23/16
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   38
  • Joined:  04/28/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  05/23/16
  • Last Seen:  

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  /kis2

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...