From 97607005941e41e60a8025c53f585c7927306fd7 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 4 Mar 2007 16:39:30 +0000 Subject: - 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 --- src/map/battle.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/map/battle.c') 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; -- cgit v1.2.3-70-g09d2