diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-04 16:39:30 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-04 16:39:30 +0000 |
commit | 97607005941e41e60a8025c53f585c7927306fd7 (patch) | |
tree | 91a93f5f16b7156c60d2d098ba91ab2c11f96842 /src/map/battle.c | |
parent | 24989a7e159e88bfa6d5561a4bd2e579cefbe70b (diff) | |
download | hercules-97607005941e41e60a8025c53f585c7927306fd7.tar.gz hercules-97607005941e41e60a8025c53f585c7927306fd7.tar.bz2 hercules-97607005941e41e60a8025c53f585c7927306fd7.tar.xz hercules-97607005941e41e60a8025c53f585c7927306fd7.zip |
- Added the +20hit that were missing the NPC elemental attack skills.
- Added support for autospells using "a random skill level". The last value of bonus4 bAutoSpell is used for determining this as well as the target. &1 is to cast on target (otherwise cast on self), and &2 is to use a random level UP to the level specified in the script (otherwise always cast the specified level)
- Updated item_bonus.txt with the documentation for the bAutoSpell/bAutoSpellWhenHit changes.
- Corrected @refresh not reupdating the basic stat bonuses.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9952 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ef43ed39a..12438ea62 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1121,14 +1121,21 @@ static struct Damage battle_calc_weapon_attack( hitrate += 10*skill_lv; break; case KN_AUTOCOUNTER: + case PA_SHIELDCHAIN: + case NPC_WATERATTACK: + case NPC_GROUNDATTACK: + case NPC_FIREATTACK: + case NPC_WINDATTACK: + case NPC_POISONATTACK: + case NPC_HOLYATTACK: + case NPC_DARKNESSATTACK: + case NPC_UNDEADATTACK: + case NPC_TELEKINESISATTACK: hitrate += 20; break; case KN_PIERCE: hitrate += hitrate*(5*skill_lv)/100; break; - case PA_SHIELDCHAIN: - hitrate += 20; - break; case AS_SONICBLOW: if(sd && pc_checkskill(sd,AS_SONICACCEL)>0) hitrate += 50; |