Browse Source

Refactored SC_LERADSDEW (#7958)

Now it also makes use of the Fail configuration in YAML
Lemongrass3110 1 year ago
parent
commit
7977612e0b
3 changed files with 4 additions and 3 deletions
  1. 2 0
      db/pre-re/status.yml
  2. 2 0
      db/re/status.yml
  3. 0 3
      src/map/status.cpp

+ 2 - 0
db/pre-re/status.yml

@@ -4110,6 +4110,8 @@ Body:
       NoDispell: true
       NoBanishingBuster: true
       NoClearance: true
+    Fail:
+      Berserk: true
     EndOnStart:
       Voiceofsiren: true
       Deepsleep: true

+ 2 - 0
db/re/status.yml

@@ -4264,6 +4264,8 @@ Body:
       NoDispell: true
       NoBanishingBuster: true
       NoClearance: true
+    Fail:
+      Berserk: true
     EndOnStart:
       Voiceofsiren: true
       Deepsleep: true

+ 0 - 3
src/map/status.cpp

@@ -10488,9 +10488,6 @@ int status_change_start(struct block_list* src, struct block_list* bl,enum sc_ty
 				val3 = sce->val3;
 				val4 = sce->val4;
 				break;
-			case SC_LERADSDEW:
-				if (sc && sc->getSCE(SC_BERSERK))
-					return 0;
 			case SC_SHAPESHIFT:
 			case SC_PROPERTYWALK:
 				break;