[3.3.x] The Impact Hound breathes... a crash

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2987

    [3.3.x] The Impact Hound breathes... a crash

    Assertion (timer > 0) failed in mon_inc_timed().

    The context:
    - first breath on a monster 3 squares away, monster is stunned
    - second breath on the same monster, crash

    The problem (project_m):
    - a monster breathes force: do_stun = (randint1(15) + r) / (r + 1);
    - cut in half if monster is already stunned: if (m_ptr->m_timed[MON_TMD_STUN]) do_stun /= 2;
    - with r = 3 and randint1(15) < 5, do_stun = 0, assertion is triggered in mon_inc_timed()

    The fix: ensure that effects are never 0
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Excellent, thanks again for the catch. Opened as #1578.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎