summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt5
-rw-r--r--src/map/status.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 256df3e88..11f7f11af 100644
--- a/Changelog-Trunk.txt
+++ b/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
diff --git a/src/map/status.c b/src/map/status.c
index 7a563acd2..f5b0d4c97 100644
--- a/src/map/status.c
+++ b/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;