mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
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> |
||
|---|---|---|
| .. | ||
| actions | ||
| creaturescripts | ||
| eventcallbacks | ||
| globalevents | ||
| lib | ||
| movements | ||
| runes | ||
| spells | ||
| systems | ||
| talkactions | ||
| weapons | ||