Selaa lähdekoodia

* Implemented the fix for Slim Pitcher working on WoESE objects (bugreport:3618).
* Added SC_SPIRIT to the list of buffs that are dispelled when the player logs out.


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

L0ne_W0lf 15 vuotta sitten
vanhempi
commit
a39d3e704f
4 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 3 0
      Changelog-Trunk.txt
  2. 2 0
      src/map/map.c
  3. 5 0
      src/map/map.h
  4. 2 1
      src/map/skill.c

+ 3 - 0
Changelog-Trunk.txt

@@ -3,6 +3,9 @@ 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.
 
+09/11/01
+	* Rev. 14115 Implemented the fix for Slim Pitcher working on WoESE objects (bugreport:3618). [L0ne_W0lf]
+	* Added SC_SPIRIT to the list of buffs that are dispelled when the player logs out.
 09/10/27
 	* Fixed quest will never get erased when it's the only quest you have. [Inkfish]
 	* Cast time of Emergency Call is doubled if you master of High Jump. [Inkfish]

+ 2 - 0
src/map/map.c

@@ -1638,6 +1638,8 @@ int map_quit(struct map_session_data *sd)
 				status_change_end(&sd->bl,SC_PRESERVE,-1);
 			if(sd->sc.data[SC_KAAHI])
 				status_change_end(&sd->bl,SC_KAAHI,-1);
+			if(sd->sc.data[SC_SPIRIT])
+				status_change_end(&sd->bl,SC_SPIRIT,-1);
 		}
 	}
 	

+ 5 - 0
src/map/map.h

@@ -45,6 +45,11 @@ struct item_data;
 #define MAX_IGNORE_LIST 20 // official is 14
 #define MAX_VENDING 12
 #define MOBID_EMPERIUM 1288
+// Added definitions for WoESE objects. [L0ne_W0lf]
+#define MOBID_BARRICADE1 1905
+#define MOBID_BARRICADE2 1906
+#define MOBID_GUARIDAN_STONE1 1907
+#define MOBID_GUARIDAN_STONE2 1908
 
 //The following system marks a different job ID system used by the map server,
 //which makes a lot more sense than the normal one. [Skotlex]

+ 2 - 1
src/map/skill.c

@@ -5255,7 +5255,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 
 	// Slim Pitcher
 	case CR_SLIMPITCHER:
-		if( dstmd && dstmd->class_ == MOBID_EMPERIUM )
+		// Updated to block Slim Pitcher from working on barricades and guardian stones.
+		if( ( dstmd && dstmd->class_ == MOBID_EMPERIUM ) || ( dstmd && dstmd->class_ >= MOBID_BARRICADE1 && dstmd && dstmd->class_ <= MOBID_GUARIDAN_STONE2 ) )
 			break;
 		if (potion_hp || potion_sp) {
 			int hp = potion_hp, sp = potion_sp;