Переглянути джерело

- Corrected song/dances/encores reducing SP at the incorrect intervals (either never, or every second)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10152 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 18 роки тому
батько
коміт
06885aadf3
2 змінених файлів з 4 додано та 1 видалено
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/status.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2007/04/05
+	* Corrected song/dances/encores reducing SP at the incorrect intervals
+	  (either never, or every second).
 2007/04/04
 	* Corrected Longing for Freedom, it should triple SP cost rather than
 	  modifying SP cost to 1/sec

+ 1 - 1
src/map/status.c

@@ -6752,7 +6752,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
 					s=10;
 					break;
 			}
-			if (s && ((sc->data[type].val3 % s) == 0)) {
+			if (s && (counter%s == 0)) {
 				if (sc->data[SC_LONGING].timer != -1)
 					sp*= 3;
 				if (!status_charge(bl, 0, sp))