summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 20:10:57 +0000
committerDracoRPG <DracoRPG@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-25 20:10:57 +0000
commit8b260b7a88cd3af703f87f378d297c159a60716d (patch)
tree10c490ad48ea07e57d426666cb6939cdc00094d6 /src/map/status.c
parentf55474803395f145ac7c9beaf30df65ba84aaa8f (diff)
downloadhercules-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
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 2 insertions, 5 deletions
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 ) // 見切り