浏览代码

- Added the missing clif_* calls to make changebase's view-class change update on the client.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6312 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 年之前
父节点
当前提交
21b2151c97
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 5 1
      src/map/script.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ 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.
 2006/04/27
+	* Added the missing clif_* calls to make changebase's view-class change
+	  update on the client. [Skotlex]
 	* Added battle config hide_woe_damage which hides damage on woe maps
 	  packet-wise (battle/client.conf). [Skotlex]
 	* Fixed base-level up @ command giving stat points instead of taking them

+ 5 - 1
src/map/script.c

@@ -6346,8 +6346,12 @@ int buildin_changebase(struct script_state *st)
 		return 0;
 	}
 
-	if(!sd->disguise && vclass != sd->vd.class_)
+	if(!sd->disguise && vclass != sd->vd.class_) {
 		status_set_viewdata(&sd->bl, vclass);
+		clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
+		if (sd->vd.cloth_color)
+			clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
+	}
 
 	return 0;
 }