.max is being ignored in formula all of a sudden

I am having an issue with one of my skills in RPG Maker VX Ace. This skill worked perfectly for a play time of 12 hours and now it seems to be ignoring the 500.max in the formula and dealing 302 HP to enemies.


I Made no changes to the skill or formula since when it was working, but now all of a sudden it is under-performing.

The skill ignores defense and elements so there are not any defenses or resistances being applied, but all of a sudden, I am getting damage numbers as low as 302 HP

1766111302763.png


Does anybody know what the problem could be here?
Does anybody know what the problem could be here?
Unsure as the variance should have given you a value somewhere between 375 and 625.
Unless the hp remaining on the enemy is 302 then that might make sense.
You will have to track back and think about what you have changed. Possibly a script that affects damage formulas. or an off chance could be your database is corrupt. In which case it will take you some time to resolve if you can. But if it is the possible issue then make changes to all your tabs and try again.
Let's assume you're using the default make_damage_value method.

Ruby:
class Game_Battler
  # some code here
  def make_damage_value(user, item)
    value = item.damage.eval(user, self, $game_variables)
    value *= item_element_rate(user, item)
    value *= pdr if item.physical?
    value *= mdr if item.magical?
    value *= rec if item.damage.recover?
    value = apply_critical(value) if @result.critical
    value = apply_variance(value, item.damage.variance)
    value = apply_guard(value)
    @result.make_damage(value.to_i, item)
  end
  # some code here
end

As you can see here, the damage value has been altered already and the guard can even make it decrease even more. Unless you've included a custom script that overwrites this somehow, that's what you should be that skill's usual outcome

I haven't seen any code modifying apply_variance so far. Have you included any script that changes how it should be handled?

Original thread: https://forums.rpgmakerweb.com/threads/max-is-being-ignored-in-formula-all-of-a-sudden.181509/