浏览代码

Devotion links will now be sent properly in all situations (followup to 12171).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12772 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 年之前
父节点
当前提交
66fe96fbb0
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/map/clif.c

+ 6 - 2
src/map/clif.c

@@ -3335,6 +3335,7 @@ int clif_storageclose(struct map_session_data *sd)
  *------------------------------------------*/
 static void clif_getareachar_pc(struct map_session_data* sd,struct map_session_data* dstsd)
 {
+	struct map_session_data* tmpsd;
 	int gmlvl;
 	int i;
 
@@ -3357,12 +3358,15 @@ static void clif_getareachar_pc(struct map_session_data* sd,struct map_session_d
 		)
 		clif_hpmeter_single(sd->fd, dstsd->bl.id, dstsd->battle_status.hp, dstsd->battle_status.max_hp);
 
-	// display links to devoted chars for crusader
+	// display link (sd - dstsd) to sd
 	ARR_FIND( 0, 5, i, sd->devotion[i] == dstsd->bl.id );
 	if( i < 5 ) clif_devotion(sd, sd);
-	// display links to devoted chars for others
+	// display links (dstsd - devotees) to sd
 	ARR_FIND( 0, 5, i, dstsd->devotion[i] > 0 );
 	if( i < 5 ) clif_devotion(dstsd, sd);
+	// display link (dstsd - crusader) to sd
+	if( dstsd->sc.data[SC_DEVOTION] && (tmpsd = map_id2sd(dstsd->sc.data[SC_DEVOTION]->val1)) != NULL )
+		clif_devotion(tmpsd, sd);
 
 	// pvp circle for duel [LuzZza]
 	//if(dstsd->duel_group)