Results 1 to 5 of 5

Thread: [Confirmed] Dark Pact deals damage in integers causing difference at outcome

  1. #1
    Basic Member ThoAppelsin's Avatar
    Join Date
    Jan 2012
    Posts
    2,893

    [Confirmed] Dark Pact deals damage in integers causing difference at outcome

    Combat Log example for level 1;

    Code:
    [80:49.01] Slark  hits Slark  with Dark Pact for 2 damage (549->547).
    [80:49.14] Slark  hits Slark  with Dark Pact for 2 damage (547->545).
    [80:49.24] Slark  hits Slark  with Dark Pact for 2 damage (545->543).
    [80:49.34] Slark  hits Slark  with Dark Pact for 2 damage (542->540).
    [80:49.44] Slark  hits Slark  with Dark Pact for 2 damage (541->539).
    [80:49.54] Slark  hits Slark  with Dark Pact for 2 damage (539->537).
    [80:49.64] Slark  hits Slark  with Dark Pact for 2 damage (537->535).
    [80:49.74] Slark  hits Slark  with Dark Pact for 2 damage (534->532).
    [80:49.84] Slark  hits Slark  with Dark Pact for 2 damage (532->530).
    [80:49.94] Slark  hits Slark  with Dark Pact for 2 damage (530->528).
    Code:
    [80:49.01] Slark  hits Beastmaster  with Dark Pact for 5 damage (1300->1295).
    [80:49.14] Slark  hits Beastmaster  with Dark Pact for 5 damage (1296->1291).
    [80:49.24] Slark  hits Beastmaster  with Dark Pact for 5 damage (1291->1286).
    [80:49.34] Slark  hits Beastmaster  with Dark Pact for 5 damage (1285->1280).
    [80:49.44] Slark  hits Beastmaster  with Dark Pact for 5 damage (1280->1275).
    [80:49.54] Slark  hits Beastmaster  with Dark Pact for 5 damage (1275->1270).
    [80:49.64] Slark  hits Beastmaster  with Dark Pact for 5 damage (1271->1266).
    [80:49.74] Slark  hits Beastmaster  with Dark Pact for 5 damage (1265->1260).
    [80:49.84] Slark  hits Beastmaster  with Dark Pact for 5 damage (1260->1255).
    [80:49.94] Slark  hits Beastmaster  with Dark Pact for 5 damage (1255->1250).

    549 - 528 = 21 damage received by Slark, and maybe has regenerated like 0~2 hp in 1 sec, so about 21~23 damage
    1300 - 1250 = 50 damage received by anyone, so about 50~52 damage

    Slark should have received 75 * 0.5 * 0.75 = ~28.125 damage there and
    that anyone should have received 75 * 0.75 = ~56,25 damage


    I think setting the "total_damage" variable type to be "FIELD_FLOAT" instead of "FIELD_INTEGER" might fix this issue, but I'm not sure, that's just a guess...


    Important stuff. I remember once that I have left away with 1 HP... evaded a potential death. I was not fleeing away from a Slark though. And it happened only once in my ~1050 games...
    but still.

  2. #2
    Volunteer Moderator
    Join Date
    Mar 2012
    Location
    Australia
    Posts
    2,671
    [80:49.24] Slark hits Slark with Dark Pact for 2 damage (545->543).
    [80:49.34] Slark hits Slark with Dark Pact for 2 damage (542->540).

    It still isn't as an integer... But doesn't mean it's not wrong in another way.

    Also dota 1 --> self damage = 37/75/112/150, so at odd levels you receive 0.5 less damage :P

    And it's not an integer against enemies either:

    [80:49.24] Slark hits Beastmaster with Dark Pact for 5 damage (1291->1286).
    [80:49.34] Slark hits Beastmaster with Dark Pact for 5 damage (1285->1280).
    Last edited by Wyn-Ryder; 04-05-2013 at 06:03 PM.

  3. #3
    Basic Member
    Join Date
    Dec 2011
    Posts
    11,187
    added to sticky.
    Make sure to read the Forum Rules as well as the stickied Threads of the Forum Section you are posting in.

    Contributions i'd like to highlight:
    My Suggestion: Coaching System
    My Sticky: Intended Changes List
    My Challenge: Completely Fixed Hero Challenge: Skywrath Mage

  4. #4
    Volunteer Moderator
    Join Date
    Mar 2012
    Location
    Australia
    Posts
    2,671
    IMO remove this, as per my other post it's not dealt in integers

  5. #5
    Basic Member
    Join Date
    Dec 2011
    Posts
    11,187
    it's still a bug.
    valve will know how to sort this out.
    Make sure to read the Forum Rules as well as the stickied Threads of the Forum Section you are posting in.

    Contributions i'd like to highlight:
    My Suggestion: Coaching System
    My Sticky: Intended Changes List
    My Challenge: Completely Fixed Hero Challenge: Skywrath Mage

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •