Просмотр исходного кода

- Fixed failing to create Deadly Poison Bottles damaging 50% of your max life instead of 25%
- Added the missing status-change flags to SC_FREEZE to signal it should modify def and magic def


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

skotlex 19 лет назад
Родитель
Сommit
8961bc591d
3 измененных файлов с 7 добавлено и 3 удалено
  1. 4 0
      Changelog-Trunk.txt
  2. 2 2
      src/map/skill.c
  3. 1 1
      src/map/status.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/08/02
+	* Fixed failing to create Deadly Poison Bottles damaging 50% of your max
+	  life instead of 25% [Skotlex]
+	* Added the missing status-change flags to SC_FREEZE to signal it should
+	  modify def and magic def [Skotlex]
 	* Little add on NJ_HUUMA [Toms]
 	* Merged Mpeg's work on Ninja skills [Toms]
 	* Fixed Martyr's Reckoning having a cap damage of 32k. [Skotlex]

+ 2 - 2
src/map/skill.c

@@ -10575,8 +10575,8 @@ int skill_produce_mix (struct map_session_data *sd, int skill_id, int nameid, in
 		clif_misceffect(&sd->bl,2);
 	} else {
 		switch (skill_id) {
-			case ASC_CDP: //50% Damage yourself, and display same effect as failed potion.
-				status_percent_damage(NULL, &sd->bl, -50, 0);
+			case ASC_CDP: //25% Damage yourself, and display same effect as failed potion.
+				status_percent_damage(NULL, &sd->bl, -25, 0);
 			case AM_PHARMACY:
 			case AM_TWILIGHT1:
 			case AM_TWILIGHT2:

+ 1 - 1
src/map/status.c

@@ -108,7 +108,7 @@ void initChangeTables(void) {
 
 	//These are the status-change flags for the common ailments.
 	StatusChangeFlagTable[SC_STONE] =     SCB_DEF_ELE;
-	StatusChangeFlagTable[SC_FREEZE] =    SCB_DEF_ELE;
+	StatusChangeFlagTable[SC_FREEZE] =    SCB_DEF_ELE|SCB_DEF|SCB_MDEF;
 //	StatusChangeFlagTable[SC_STUN] =      SCB_NONE;
 //	StatusChangeFlagTable[SC_SLEEP] =     SCB_NONE;
 	StatusChangeFlagTable[SC_POISON] =    SCB_DEF2;