summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-16 20:22:31 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-16 20:22:31 +0000
commit67187efcbbd3568d4ceaa584658854f38770a54a (patch)
tree7fdd7cb1cb6621c3377ec16baf28a1902130d854 /src/map/battle.c
parent7d9a2511382e90bc468602fec78f1f473cacf637 (diff)
downloadhercules-67187efcbbd3568d4ceaa584658854f38770a54a.tar.gz
hercules-67187efcbbd3568d4ceaa584658854f38770a54a.tar.bz2
hercules-67187efcbbd3568d4ceaa584658854f38770a54a.tar.xz
hercules-67187efcbbd3568d4ceaa584658854f38770a54a.zip
- Adjusted UTSUSEMI/BUNSINJYUTSU so that they block range/melee weapon attacks and only melee misc attacks. This isn't 100% correct, but it's a better approximation to the way these skills behave.
- Corrected issen's range to 5, as per the login packet information. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9001 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 878f9e322..d0eab1861 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -323,10 +323,12 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
}
if ((sc->data[SC_UTSUSEMI].timer != -1 || sc->data[SC_BUNSINJYUTSU].timer != -1)
- && (flag&(BF_WEAPON|BF_MISC))
+ &&
+// This check used instead, is 'aproximate' to what it can block.
+ (flag&BF_WEAPON || (flag&(BF_MISC|BF_SHORT)) == (BF_MISC|BF_SHORT))
/* FIXME: This check is awful, there has to be some kind of logic behind this!
- && (
// there is no rule for that, only some exceptions.. which I listed according to many tests and says
+ && (
skill_num != ASC_BREAKER &&
skill_num != NJ_KUNAI &&
skill_num != SN_FALCONASSAULT &&