Browse Source

Fixed bugreport:6311 capped summons speed to a minimum of 2 in order for them not to become useless (before this if you say cloned someone with less than 2 of speed the clones wouldn't function properly)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16501 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 years ago
parent
commit
2160fbf074
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/map/status.c

+ 2 - 0
src/map/status.c

@@ -1992,6 +1992,8 @@ int status_calc_mob_(struct mob_data* md, bool first)
 		if (mstatus &&
 		if (mstatus &&
 			battle_config.slaves_inherit_speed&(mstatus->mode&MD_CANMOVE?1:2))
 			battle_config.slaves_inherit_speed&(mstatus->mode&MD_CANMOVE?1:2))
 			status->speed = mstatus->speed;
 			status->speed = mstatus->speed;
+		if( status->speed < 2 ) /* minimum for the unit to function properly */
+			status->speed = 2;
 	}
 	}
 
 
 	if (flag&16 && mbl)
 	if (flag&16 && mbl)