浏览代码

- Fixed Wedding support skills healing yourself instead of partner.
- Added a check to prevent knocking back the Emperium at all costs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5792 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 19 年之前
父节点
当前提交
286820f191
共有 3 个文件被更改,包括 9 次插入3 次删除
  1. 4 0
      Changelog-Trunk.txt
  2. 2 0
      src/map/skill.c
  3. 3 3
      src/map/unit.c

+ 4 - 0
Changelog-Trunk.txt

@@ -4,6 +4,10 @@ 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/03/28
+	* Fixed Wedding support skills healing yourself instead of partner.
+	  [Skotlex]
+	* Added a check to prevent knocking back the Emperium at all costs.
+	  [Skotlex]
 	* Fixed summon mobs being able to cast "summon" skills. [Skotlex]
 	* Summoned mobs will inherit the size and ai properties of the master. [Skotlex]
 	* Added a debug function to locate all "looping warps". [Skotlex]

+ 2 - 0
src/map/skill.c

@@ -1587,6 +1587,8 @@ int skill_blown( struct block_list *src, struct block_list *target,int count)
 			break;
 		case BL_MOB:
 			md=(struct mob_data *)target;
+			if (md->class_ == MOBID_EMPERIUM)
+				return 0;
 			break;
 		case BL_PET:
 			pd=(struct pet_data *)target;

+ 3 - 3
src/map/unit.c

@@ -696,7 +696,6 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
 			if (sc && sc->data[SC_BLADESTOP].timer != -1){
 				if ((target=(struct block_list *)sc->data[SC_BLADESTOP].val4) == NULL)
 					return 0;
-				target_id = target->id;
 			}
 			break;
 		case TK_JUMPKICK:
@@ -710,13 +709,14 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
 			if (!sd->status.partner_id)
 				return 0;
 			target = (struct block_list*)map_charid2sd(sd->status.partner_id);
-			if (!target)
-			{
+			if (!target) {
 				clif_skill_fail(sd,skill_num,0,0);
 				return 0;
 			}
 			break;
 		}
+		if (target)
+			target_id = target->id;
 	}
 	if(!target && (target=map_id2bl(target_id)) == NULL )
 		return 0;