Don't Show Damage if Damage = 0

Hey! 👋

In my project, I have some fairly complicated non-damaging status moves, that make use of the damage formula. The only thing is, since I am using the damage formula, I still get the "ENEMY took no damage" message in the battle log.

Could someone create a script that prevents the "ENEMY took no damage" message from appearing?

Thank you! 🙏
Will this do?
Code:
class Window_BattleLog
  alias no_hp_damage display_hp_damage
  def display_hp_damage(target, item)
    return if target.result.hp_damage == 0
    no_hp_damage(target, item)
  end
end
Will this do?

Awesome, works like a charm! Thank you! 😍

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/dont-show-damage-if-damage-0.103951/