Skip to content

Commit

Permalink
Fixed AM_ACIDTERROR not ignoring def on units other than players
Browse files Browse the repository at this point in the history
  • Loading branch information
csnv committed Sep 24, 2023
1 parent 3faa147 commit 0a6e224
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1467,15 +1467,17 @@ static int64 battle_calc_defense(int attack_type, struct block_list *src, struct
def2 -= penalty;
}
}
}

#ifndef RENEWAL
if (skill_id == AM_ACIDTERROR)
def1 = 0; // Acid Terror ignores only armor defense. [Skotlex]
if (skill_id == AM_ACIDTERROR)
def1 = 0; // Acid Terror ignores only armor defense. [Skotlex]
#endif
if (def1 < 0)
def1 = 0;
if (def2 < 1)
def2 = 1;
}
if (def1 < 0)
def1 = 0;
if (def2 < 1)
def2 = 1;

//Vitality reduction from rodatazone: http://rodatazone.simgaming.net/mechanics/substats.php#def
if (tsd) {
//Sd vit-eq
Expand Down

0 comments on commit 0a6e224

Please sign in to comment.