canary/data/scripts
Eduardo Dantas 714fd2ff7c
fix: low blow charm aligned to global behaviour (#3392)
This change fixes an issue in the `Combat::applyExtensions` function
where the "Low Blow" charm critical hit was incorrectly triggering the
global critical hit as well, resulting in unexpected behavior. The bug
was caused by the independent calculation of `lowBlowChance` using
`charm->percent` alone, which led to a downstream misinterpretation of
critical hits. The fix adjusts the "Low Blow" chance calculation to
`baseChance + charm->percent`, aligning it with the Tibia Global
mechanics where "Low Blow" acts as an extension of the base critical
chance, only triggering when the global critical does not occur.
Additionally, this PR adapts `applyExtensions` to handle multiple
targets instead of a single target, improving compatibility with
area-based combat effects.

Co-authored-by: valdzera <146901121+valdzera@users.noreply.github.com>
2025-03-15 13:51:28 -03:00
..
actions fix: corrected mana spent for exercise wand (#3431) 2025-03-14 18:28:26 -03:00
creaturescripts feat: login and disconnect protection (#3223) 2025-01-09 13:39:40 -03:00
eventcallbacks fix: aleta grav behaviour (#3398) 2025-02-25 08:57:01 -03:00
globalevents feat: cyclopedia house auction (#3022) 2024-12-31 13:03:35 -03:00
lib fix: mass healing area aug II wheel of destiny (#3391) 2025-02-23 05:54:29 -03:00
movements fix: unintended depot message and improve code (#3361) 2025-02-23 05:54:00 -03:00
runes fix: spells and runes interactions (#3328) 2025-02-09 20:28:13 -03:00
spells fix: aleta grav behaviour (#3398) 2025-02-25 08:57:01 -03:00
systems fix: colored loot message on bosses (#3342) 2025-02-08 15:38:40 -03:00
talkactions fix: low blow charm aligned to global behaviour (#3392) 2025-03-15 13:51:28 -03:00
weapons fix: small adjustments and corrections to the core (#2524) 2024-06-04 22:17:28 -03:00