Added speed bonus to Serenade of Jawaii (#6842)

This commit is contained in:
Lemongrass3110 2022-04-17 21:32:27 +02:00 committed by GitHub
parent 1aaa32bd1a
commit 1a7a26bc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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