This describes how damage is done in the game. This is not a detailed math guide. For more in-depth math analysis, please navigate to damage system - math
This is sub-layout for documentation pages
The damage dealing is divided to 2 cases. First one being damage that is dealt right away, called immediate damage (in case of melee attacks), and the other is delayed damage which is when it is dealt with some delay (in case of magic attack)
In moment of player's attack (on the server), atack and defence is calculated. Then, damage is dealt to the target, and then damage after effects phase is initiated.
For delayed damage to work, the damage number is generated in moment of actual attack action.
The number is, however, saved into an array held in the target character, along with a timer.
When timer's time is up, then the damage number is taken and dealt to the character (if he is still alive).
After that, damage after effects phase is initiated