Procházet zdrojové kódy

- Fixed remove trap by updating the definition of INF_GROUND_SKILL (it shouldn't include target-targetting skills!)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5468 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex před 19 roky
rodič
revize
f52676dd01
3 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 1 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/skill.c
  3. 1 2
      src/map/skill.h

+ 1 - 0
Changelog-Trunk.txt

@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/03/05
+	* Fixed remove-trap [Skotlex]
 	* Fixed animation of Redemptio [Skotlex]
 	* Some reorganization of how the skill check functions behave
 	  (skill_get_*). Guild skills have been moved to the range 900~915 (instead

+ 2 - 2
src/map/skill.c

@@ -3041,7 +3041,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
 		break;
 
 	default:
-		ShowWarning("Unknown skill used:%d\n",skillid);
+		ShowWarning("skill_castend_damage_id: Unknown skill used:%d\n",skillid);
 		map_freeblock_unlock();
 		return 1;
 	}
@@ -5536,7 +5536,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 		break;
 
 	default:
-		ShowWarning("Unknown skill used:%d\n",skillid);
+		ShowWarning("skill_castend_nodamage_id: Unknown skill used:%d\n",skillid);
 		map_freeblock_unlock();
 		return 1;
 	}

+ 1 - 2
src/map/skill.h

@@ -14,8 +14,7 @@
 
 //Constants to identify the skill's inf value:
 #define INF_ATTACK_SKILL 1
-//For the time being, all trap-targetted skills ARE ground based:
-#define INF_GROUND_SKILL (2|32)
+#define INF_GROUND_SKILL 2
 // Skills casted on self where target is automatically chosen:
 #define INF_SELF_SKILL 4
 #define INF_SUPPORT_SKILL 16