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 | |
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
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/skill.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 57be3cbaa..d9f53fa03 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
+2006/03/16
+ * Restricted GS_BULLSEYE to only be used on demi-human or brute monster targets [MasterOfMuppets]
2006/03/15
* mob_chat_sub fix. Added buildin_pcblockmove. [Lance]
* BL_PC and BL_MOB control script commands (experimental) [Lance]
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:
|