Browse Source

Changed Union/Increase AGI stack fix (it should work now). (bugreport:1155)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12506 54d463be-8e91-2dee-dedb-b68131a5f0ec
Kevin 17 năm trước cách đây
mục cha
commit
92ca769f02
2 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 1 0
      Changelog-Trunk.txt
  2. 2 6
      src/map/status.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2008/04/06
+	* Changed Union/Increase AGI stack fix (it should work now). (r12506) [Kevin]
 	* Fixed seven wind not allowing ghost/shadow. (r12505) [Kevin]
 	* Added Moscovia to the list of @go destinations [Toms]
 2008/04/05

+ 2 - 6
src/map/status.c

@@ -3721,18 +3721,14 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
 
 		if(sc->data[SC_RUN])
 			speed -= speed * 50/100;
+		else if(sc->data[SC_INCREASEAGI] && sc->data[SC_FUSION])
+			speed -= speed * 50/100;
 		else if(sc->data[SC_SPEEDUP0])
 			speed -= speed * 25/100;
 		else if(sc->data[SC_INCREASEAGI])
 			speed -= speed * 25/100;
 		else if(sc->data[SC_FUSION])
-		{
 			speed -= speed * 25/100;
-
-			//Union and Increase AGI should stack [Kevin]
-			if(sc->data[SC_INCREASEAGI])
-				speed -= speed * 25/100;
-		}
 		else if(sc->data[SC_CARTBOOST])
 			speed -= speed * 20/100;
 		else if(sc->data[SC_BERSERK])