otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.55k stars 1.04k forks source link

[bugfix] make it so that 1% resistance correctly reduces damage taken by 1 #4729

Closed Coldensjo closed 1 month ago

Coldensjo commented 1 month ago

Changes Proposed

This will make it so that 1% earth resistance will nullify 1 damage poisons for example.

ranisalt commented 1 month ago

Shouldn't it be ceiled instead?

ranisalt commented 1 month ago

D:

Coldensjo commented 1 month ago

D:

I'm new to pull requests sorry https://github.com/otland/forgottenserver/pull/4733