meepen / salien-bot

Steam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
MIT License
418 stars 104 forks source link

Change healing logic #179

Open MatthiasMoore opened 6 years ago

MatthiasMoore commented 6 years ago

The player will be healed when they are not full hp during boss battles.

Resolves #177

meepen commented 6 years ago

Correct me if im wrong - but the healing attack heals everyone, not just you, correct?

MatthiasMoore commented 6 years ago

Yea, the healing skill does heal others, and it seems the boss will randomly damage one of the ten players with its laser attack. It would be more efficient to check all players health values, and then apply it in an optimal way, but I was not thinking about that at the time.

MatthiasMoore commented 6 years ago

The new commits should now prefer healing when half the allies are not full hp. I will not have time to test it for a few hours, but looking over the logic a few times, it should function properly unless I am overlooking something simple.