summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-26 02:16:56 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-26 02:16:56 +0000
commit8d573da5d4db846bb53ed8b3e8e628e6fa997510 (patch)
tree7cd4841a1328ba671426422e6ebd94d3e336415b /src
parent0f59bb06f026537c6527b7b9e18528f15e49be3b (diff)
downloadhercules-8d573da5d4db846bb53ed8b3e8e628e6fa997510.tar.gz
hercules-8d573da5d4db846bb53ed8b3e8e628e6fa997510.tar.bz2
hercules-8d573da5d4db846bb53ed8b3e8e628e6fa997510.tar.xz
hercules-8d573da5d4db846bb53ed8b3e8e628e6fa997510.zip
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16501 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index a5bc25d91..1c9a2d830 100644
--- a/src/map/status.c
+++ b/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)