Jump to content
  • 0
Sign in to follow this  
kyeme

SN_SHARPSHOOTING (Focused Arrow Strike)

Question

How to make this skill can also target party and guildmates/ally?

I changed to Friend from Enemy in skill.conf but no luck..

    SkillType: {
       Friend: true
    }

 

Thanks.
 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

https://github.com/HerculesWS/Hercules/blob/stable/src/map/battle.c#L6815

Add this.

		if (src && (map->list[m].flag.gvg_castle || map->list[m].flag.gvg)
			&& (battle->get_current_skill(src) == SN_SHARPSHOOTING)) {
			state |= BCT_ENEMY;
			state &= ~BCT_GUILD;
			state &= ~BCT_PARTY;
		}

 

Share this post


Link to post
Share on other sites
  • 0

@vBrenth How about to target only the Party member (and Enemy) in your guilds.

example: 
  You and Player 2 (Player 2 is not in your party) = You cannot SharpShoot Player 2

  You and Player 3 (Player 3 is in your party) = You can target with Sharp Shoot Player 3

 

Thank you.

Share this post


Link to post
Share on other sites
  • 0
			state &= ~BCT_GUILD;
			state &= ~BCT_PARTY;

You can test by removing guild so it can only hit party?

Share this post


Link to post
Share on other sites
  • 0

It's not working. I can't hit my party members in my guilds.

 

		if (src && (map->list[m].flag.gvg_castle || map->list[m].flag.gvg)
			&& (battle->get_current_skill(src) == SN_SHARPSHOOTING)) {
			state |= BCT_ENEMY;
			state &= ~BCT_PARTY;
		}

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.