Skip to content

Commit

Permalink
Release 0.16.3 Fix buffs being skipped constantly (#62)
Browse files Browse the repository at this point in the history
Accounts for when each heal happens to ensure buffs are not constantly skipped by heals happening when it was also trying to buff.
  • Loading branch information
Credit-Score authored Mar 25, 2023
1 parent 43fb294 commit de1bc98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-tauri/src/behavior/support_behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ impl<'a> SupportBehavior<'_> {
if send {
//slog::debug!(self.logger, "Slot usage"; "slot_type" => slot_type.to_string(), "value" => threshold);
self.send_slot(slot_index);
if slot_type == SlotType::HealSkill {
// Set last buff usage to now so that a buff doesn't try and happen immediately after a heal
self.last_buff_usage = Instant::now();
}
}

return Some(slot_index);
Expand Down

0 comments on commit de1bc98

Please sign in to comment.