浏览代码

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 年之前
父节点
当前提交
2160fbf074
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 &&
 			battle_config.slaves_inherit_speed&(mstatus->mode&MD_CANMOVE?1:2))
 			status->speed = mstatus->speed;
+		if( status->speed < 2 ) /* minimum for the unit to function properly */
+			status->speed = 2;
 	}
 
 	if (flag&16 && mbl)