Skip to content

Commit

Permalink
Osmosis: deprioritize buffing target when buff has other candidates. …
Browse files Browse the repository at this point in the history
…Long live dejaosmo
  • Loading branch information
serprex committed Jul 12, 2021
1 parent 42cb553 commit d8efced
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rs/src/skill.rs
Expand Up @@ -3097,6 +3097,9 @@ impl Skill {
.cloned()
.filter(|&cr| cr != 0),
);
if candidates.len() > 1 {
candidates.retain(|&id| id != t);
}
if let Some(&id) = ctx.choose(&candidates) {
let halfhp = (ctx.truehp(t) + 1) / 2;
let halfatk = (ctx.trueatk(t) + 1) / 2;
Expand Down

0 comments on commit d8efced

Please sign in to comment.