Prechádzať zdrojové kódy

See Changelog.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8253 54d463be-8e91-2dee-dedb-b68131a5f0ec
blackhole89 19 rokov pred
rodič
commit
11d3442df9
2 zmenil súbory, kde vykonal 16 pridanie a 0 odobranie
  1. 5 0
      Changelog-Trunk.txt
  2. 11 0
      src/map/status.c

+ 5 - 0
Changelog-Trunk.txt

@@ -4,6 +4,11 @@ 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.
 
 2006/08/11
+	* Fixed Kagebunshin no Jutsu crashing for dyes > 0; though this solution
+	  might seem hackish (changing clothes colour to 0 when it starts while
+	  storing original colour back in val4, restoring original dye upon
+	  end), I believe this is the best way there currently is to solve
+	  the issue. [blackhole89]
 	* Fixed Dancers/Bards being able to use normal attacks while performing.
 	  [Skotlex]
 2006/08/10

+ 11 - 0
src/map/status.c

@@ -4449,6 +4449,13 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
 	}
 	//Before overlapping fail, one must check for status cured.
 	switch (type) {
+	case SC_BUNSINJYUTSU:	//[blackhole89]
+		if(sd)
+		{
+			val4=sd->status.clothes_color;
+			pc_changelook(sd,LOOK_CLOTHES_COLOR,0);
+		}
+		break;
 	case SC_BLESSING:
 		if ((!undead_flag && status->race!=RC_DEMON) || bl->type == BL_PC) {
 			if (sc->data[SC_CURSE].timer!=-1)
@@ -5717,6 +5724,10 @@ int status_change_end( struct block_list* bl , int type,int tid )
 	vd = status_get_viewdata(bl);
 	calc_flag = StatusChangeFlagTable[type];
 	switch(type){
+		case SC_BUNSINJYUTSU: //[blackhole89]
+			{
+				if(sd) pc_changelook(sd,LOOK_CLOTHES_COLOR,sc->data[type].val4);
+			}
 		case SC_WEDDING:
 		case SC_XMAS:
 			if (!vd) return 0;