[BUG] Taking damage even when attack missed

So I have no ***n clue about this one. All of a sudden my character has starting taking damage even though the game shows the enemy's attack missed.

Update: this has to do with a skill used by enemies that appear halfway through battle. The first monster in the battle shares this same skill but does not have this problem. Also, the problem isnt that i take damage when the skill misses, but that the hit is presented as a miss...

Solution (god knows why): never have a skill not rely on skill power. For some ungodly reason having a skill's power at 0 just ****s it up to the point that even a miss does damage apparently

Addition: Skill was based only on ATK-F when bugging
In Game_Battler 3, this is the part that you probably encountered:
Code:
def skill_effect(user, skill)
...
    # If hit occurs
    if hit_result == true
      # If physical attack has power other than 0
      if skill.power != 0 and skill.atk_f > 0
        # State Removed by Shock
        remove_states_shock
        # Set to effective flag
        effective = true
      end
      # Substract damage from HP
      last_hp = self.hp
      self.hp -= self.damage #<============ HP subtraction is still taking place...
      effective |= self.hp != last_hp
      # State change
      @state_changed = false
      effective |= states_plus(skill.plus_state_set)
      effective |= states_minus(skill.minus_state_set)
      # If power is 0
      if skill.power == 0 #<=============== ...but changes the text to Miss
        # Set damage to an empty string
        self.damage = ""
        # If state is unchanged
        unless @state_changed
          # Set damage to "Miss"
          self.damage = "Miss"
        end
      end
Maybe you can tweak the conditional to
Code:
if skill.power == 0 && (self.damage.nil? || self.damage == 0)
I just want to say that your post has a really aggressive tone. I know you're frustrated, but easing back on the aggression will make people more inclined to want to help you. Also make sure, if someone does make a suggestion and it doesn't work, that you don't turn that aggression towards them.

Original thread: https://forums.rpgmakerweb.com/threads/bug-taking-damage-even-when-attack-missed.138760/