소스 검색

* Duration of SC_STONE is not reduced by MDEF.
* LexAeterna is allowed to be used on petrifying targets.
* Mobs won't attack back if StoneCurse fails.

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

Inkfish 15 년 전
부모
커밋
ec8b12948e
3개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 0
      Changelog-Trunk.txt
  2. 0 2
      src/map/skill.c
  3. 3 2
      src/map/status.c

+ 4 - 0
Changelog-Trunk.txt

@@ -3,6 +3,10 @@ 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/09/17
+	* Duration of SC_STONE is not reduced by MDEF. [Inkfish]
+	* LexAeterna is allowed to be used on petrifying targets. [Inkfish]
+	* Mobs won't attack back if StoneCurse fails. [Inkfish]
 09/09/13
 	* Progressbar aborts when player is attacked. [Inkfish]
 	* Do not stand if damage is from yourself or has no source.(bugreport:3582) [Inkfish]

+ 0 - 2
src/map/skill.c

@@ -4241,8 +4241,6 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
 			}
 			if(status_isimmune(bl) || !tsc)
 				break;
-			if (dstmd)
-				mob_target(dstmd,src,skill_get_range2(src,skillid,skilllv));
 
 			if (tsc->data[SC_STONE]) {
 				status_change_end(bl,SC_STONE,-1);

+ 3 - 2
src/map/status.c

@@ -4627,7 +4627,8 @@ int status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int ti
 	}
 
 	//When no tick def, reduction is the same for both.
-	if (!tick_def) tick_def = sc_def;
+	if( !tick_def && type != SC_STONE ) //Recent tests show duration of petrify isn't reduced by MDEF. [Inkfish]
+		tick_def = sc_def;
 
 	//Natural resistance
 	if (!(flag&8)) {
@@ -4732,7 +4733,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
 			return 0;
 	break;
 	case SC_AETERNA:
-		if (sc->data[SC_STONE] || sc->data[SC_FREEZE])
+		if( (sc->data[SC_STONE] && sc->opt1 == OPT1_STONE) || sc->data[SC_FREEZE] )
 			return 0;
 	break;
 	case SC_KYRIE: