diff options
author | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 16:25:23 +0000 |
---|---|---|
committer | MasterOfMuppets <MasterOfMuppets@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-16 16:25:23 +0000 |
commit | 0b071db9b1c8c475d7bf51700fbb45f6cb49d283 (patch) | |
tree | 7b763ca5e5d1643c6d5569306241e5927e4a9e15 /src | |
parent | 6e4d98865963ef3e85df488716e9a97bfcacc98b (diff) | |
download | hercules-0b071db9b1c8c475d7bf51700fbb45f6cb49d283.tar.gz hercules-0b071db9b1c8c475d7bf51700fbb45f6cb49d283.tar.bz2 hercules-0b071db9b1c8c475d7bf51700fbb45f6cb49d283.tar.xz hercules-0b071db9b1c8c475d7bf51700fbb45f6cb49d283.zip |
Restricted the use of GS_BULLSEYE to demi-human and brute targets.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5629 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/skill.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index f0e1b4a14..e094ac595 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -3095,8 +3095,13 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
break;
case GS_BULLSEYE:
- //race check
- skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
+ {
+ int race = status_get_race(bl);
+ if(race == 2 || race == 7)
+ skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
+ else
+ clif_skill_fail(sd,skillid,0,0);
+ }
break;
case GS_DESPERADO:
case GS_SPREADATTACK:
|