Browse Source

- Fixed Emergency Call (bugreport:3291) so that it does not recall dead guild members

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15934 54d463be-8e91-2dee-dedb-b68131a5f0ec
xantara 13 years ago
parent
commit
324e1cf7a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/map/skill.c

+ 1 - 1
src/map/skill.c

@@ -7030,7 +7030,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 			clif_skill_nodamage(src,bl,skillid,skilllv,1);
 			for(i = 0; i < g->max_member; i++, j++) {
 				if (j>8) j=0;
-				if ((dstsd = g->member[i].sd) != NULL && sd != dstsd && !dstsd->state.autotrade) {
+				if ((dstsd = g->member[i].sd) != NULL && sd != dstsd && !dstsd->state.autotrade && !pc_isdead(dstsd)) {
 					if (map[dstsd->bl.m].flag.nowarp && !map_flag_gvg2(dstsd->bl.m))
 						continue;
 					if(map_getcell(src->m,src->x+dx[j],src->y+dy[j],CELL_CHKNOREACH))