Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Archives
  3. Immortal Archive
  4. Bug Reports
  5. Negative damage on some hits

Negative damage on some hits

Scheduled Pinned Locked Moved Bug Reports
2 Posts 2 Posters 16 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SynS Offline
    SynS Offline
    Syn
    retired
    wrote on last edited by
    #1

    <quote>> Continued with a different bug - When shooting arrows, I hit him with 3. Out of them, 2 did the normal damage, however, 1 did NEGATIVE damage, and actually healed him. So, just a thought on why that happened?</quote>

    OK this happens VERY rarely, but for some reason in the calculation for damage, every once in a long while you actually hit for negative damage. Very weird. I put some tracking in the logfiles that looks like this:

    damage right before hurting: negative dam, ch a black kitten, damage -12, dt 217, dam_type 20, victim Thorin

    I ran th rough the code about a million times and can't see what is causing it. We could put in a hack to set the damage to positive, but I would rather resolve the problem. Areo, can you have a look at this section of the code and see if you can spot anything that I didn't?

    1 Reply Last reply
    0
    • NibelungN Offline
      NibelungN Offline
      Nibelung
      registered
      wrote on last edited by
      #2

      While on the topic of DAMAGE… you might want to check into the problem with having negative DAMROLL. The code (according to what I've seen on stat mob) performs a log() on the damroll and massages it to get the effective damroll. Well, if you have negative damrolls, that causes log() to go undefined, reading as infinite. I assume the code puts a cap on this as I've only seen reports of the damage being ~5k damage per HIT.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Powered by NodeBB | Contributors
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups