diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-26 18:32:23 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-26 18:32:23 +0000 |
commit | 4af7fbd2970fbb7546c50ee6b6451d9985c102aa (patch) | |
tree | 6a79ea3857e9e01caaf571ceffaf72397965e33c /src/map/battle.c | |
parent | 3396bad1320df4d59a0806a41fafaf99d7b4c9d6 (diff) | |
download | hercules-4af7fbd2970fbb7546c50ee6b6451d9985c102aa.tar.gz hercules-4af7fbd2970fbb7546c50ee6b6451d9985c102aa.tar.bz2 hercules-4af7fbd2970fbb7546c50ee6b6451d9985c102aa.tar.xz hercules-4af7fbd2970fbb7546c50ee6b6451d9985c102aa.zip |
- Forgot to add Tatami Gaeshi's 3 sec block of ranged attacks.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7345 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ba4150181..e74862b77 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -308,6 +308,10 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i && rand()%100 < 75 && !(skill_get_inf(skill_num)&INF_GROUND_SKILL)) return 0; + + if(sc->data[SC_TATAMIGAESHI].timer != -1 && !flag&BF_MAGIC && flag&BF_LONG) + return 0; + if(sc->data[SC_KAUPE].timer != -1 && rand()%100 < sc->data[SC_KAUPE].val2 && (src->type == BL_PC || !skill_num)) |