Skip to content

Commit 1fe6d7a

Browse files
committed
Fixed SC_DEFENDER calculation typo.
Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
1 parent c1fa550 commit 1fe6d7a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/map/status.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8022,18 +8022,18 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl
80228022
break;
80238023

80248024
case SC_DEFENDER:
8025-
if (!(flag&SCFLAG_NOAVOID)) {
8026-
val2 = 5 + 15*val1; //Damage reduction
8025+
if ((flag & SCFLAG_NOAVOID) == 0) {
8026+
val2 = 5 + 15 * val1; //Damage reduction
80278027
val3 = 0; // unused, previously speed adjustment
8028-
val4 = 250 - 50*val1; //Aspd adjustment
8028+
val4 = 250 - 50 * val1; //Aspd adjustment
80298029

8030-
if (sd) {
8030+
if (sd != NULL) {
80318031
struct map_session_data *tsd;
80328032
int i;
80338033
for (i = 0; i < MAX_PC_DEVOTION; i++) {
80348034
//See if there are devoted characters, and pass the status to them. [Skotlex]
8035-
if (sd->devotion[i] && (tsd = map->id2sd(sd->devotion[i])) != NULL)
8036-
status->change_start(bl, &tsd->bl, type, 10000, val1, 5 + val1 * 5, val3, val4, total_tick, SCFLAG_NOAVOID, skill_id);
8035+
if (sd->devotion[i] != 0 && (tsd = map->id2sd(sd->devotion[i])) != NULL)
8036+
status->change_start(bl, &tsd->bl, type, 10000, val1, val2, val3, val4, total_tick, SCFLAG_NOAVOID, skill_id);
80378037
}
80388038
}
80398039
}

0 commit comments

Comments
 (0)