Sfoglia il codice sorgente

Added speed bonus to Serenade of Jawaii (#6842)

Lemongrass3110 3 anni fa
parent
commit
1a7a26bc39
2 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 1 0
      db/re/status.yml
  2. 3 0
      src/map/status.cpp

+ 1 - 0
db/re/status.yml

@@ -7862,6 +7862,7 @@ Body:
     DurationLookup: TR_JAWAII_SERENADE
     CalcFlags:
       Smatk: true
+      Speed: true
   - Status: Pron_March
     Icon: EFST_PRON_MARCH
     DurationLookup: TR_PRON_MARCH

+ 3 - 0
src/map/status.cpp

@@ -7351,6 +7351,9 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
 			val = max(val, 25); // !TODO: Confirm bonus movement speed
 		if (sc->data[SC_EMERGENCY_MOVE])
 			val = max(val, sc->data[SC_EMERGENCY_MOVE]->val2);
+		if( sc->data[SC_JAWAII_SERENADE] ){
+			val = max( val, 25 );
+		}
 
 		// !FIXME: official items use a single bonus for this [ultramage]
 		if( sc->data[SC_SPEEDUP0] ) // Temporary item-based speedup