Selaa lähdekoodia

Corrected SC_MISTYFROST (#8813)

Fixed #8812
Atemo 6 kuukautta sitten
vanhempi
commit
e90e60f2fc
1 muutettua tiedostoa jossa 4 lisäystä ja 6 poistoa
  1. 4 6
      src/map/battle.cpp

+ 4 - 6
src/map/battle.cpp

@@ -613,12 +613,6 @@ int64 battle_attr_fix(struct block_list *src, struct block_list *target, int64 d
 					ratio += 50;
 #else
 					damage += (int64)(damage * 50 / 100);
-#endif
-				if (tsc->getSCE(SC_MISTYFROST))
-#ifdef RENEWAL
-					ratio += 15;
-#else
-					damage += (int64)(damage * 15 / 100);
 #endif
 				break;
 			case ELE_EARTH:
@@ -693,6 +687,10 @@ static int32 battle_calc_cardfix_debuff( status_change& tsc, int32 rh_ele ){
 			if (tsc.getSCE(SC_CLIMAX_EARTH))
 				ele_fix += 100;
 			break;
+		case ELE_WATER:
+			if (tsc.getSCE(SC_MISTYFROST))
+				ele_fix += 15;
+			break;
 	}
 	return ele_fix;
 }