diff options
author | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 20:10:57 +0000 |
---|---|---|
committer | DracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-25 20:10:57 +0000 |
commit | 8b260b7a88cd3af703f87f378d297c159a60716d (patch) | |
tree | 10c490ad48ea07e57d426666cb6939cdc00094d6 | |
parent | f55474803395f145ac7c9beaf30df65ba84aaa8f (diff) | |
download | hercules-8b260b7a88cd3af703f87f378d297c159a60716d.tar.gz hercules-8b260b7a88cd3af703f87f378d297c159a60716d.tar.bz2 hercules-8b260b7a88cd3af703f87f378d297c159a60716d.tar.xz hercules-8b260b7a88cd3af703f87f378d297c159a60716d.zip |
Rewrote Improve Dodge flee & speed bonuses
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1297 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-SVN.txt | 3 | ||||
-rw-r--r-- | src/map/status.c | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Changelog-SVN.txt b/Changelog-SVN.txt index c74d02b95..2079e27ce 100644 --- a/Changelog-SVN.txt +++ b/Changelog-SVN.txt @@ -9,6 +9,9 @@ Date Added * Fixed @monsterbig/@monstersmall not working [celest] * Fixed @killmonster2 not working [celest] * Fixed a typo in my fix for Stalk / Tunnel Drive increasing instead of decreasing speed, sorry [DracoRPG] + * Rewrote a little bit Improve Dodge [DracoRPG] + - The speed bonus does not effect when Cloaked + - Assassins & Rogues get +4 Flee/lv, but all other jobs can get +3/lv if they have the skill (not only Thiefs & Super Novices) 03/24 * Added some mapflags for new towns [Lupus] diff --git a/src/map/status.c b/src/map/status.c index e1f78e6e9..30887e201 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1034,11 +1034,8 @@ int status_calc_pc(struct map_session_data* sd,int first) //Flee上昇 if( (skill=pc_checkskill(sd,TF_MISS))>0 ){ // 回避率?加 - if(sd->status.class_==6||sd->status.class_==4007 || sd->status.class_==23) - sd->flee += skill*3; - else if(sd->status.class_==12||sd->status.class_==17||sd->status.class_==4013||sd->status.class_==4018) - sd->flee += skill*4; - if(sd->status.class_==12||sd->status.class_==4013) + sd->flee += skill*(sd->status.class_==12 || sd->status.class_==17 || sd->status.class_==4013 || sd->status.class_==4018 ? 4 : 3); + if((sd->status.class_==12 || sd->status.class_==4013) && (sd->sc_count && sd->sc_data[SC_CLOAKING].timer==-1)) sd->speed -= (short)(skill*1.5/100 * DEFAULT_WALK_SPEED); } if( (skill=pc_checkskill(sd,MO_DODGE))>0 ) // 見切り |