[DiscordArchive] So where to look for the server side calculation?
[DiscordArchive] So where to look for the server side calculation?
Archived author: ghibly79 • Posted: 2020-03-14T22:46:21.735000+00:00
Original source
So where to look for the server side calculation?
Archived author: Viste • Posted: 2020-03-14T22:46:59.226000+00:00
Original source
and plz use 3 ` before and after code
Archived author: Viste • Posted: 2020-03-14T22:47:18.107000+00:00
Original source
and then code looks like
```
void Player::UpdateSpellDamageAndHealingBonus()
{
// Magic damage modifiers implemented in Unit::SpellDamageBonusDone
// This information for client side use only
// Get healing bonus for all schools
SetStatInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, SpellBaseHealingBonusDone(SPELL_SCHOOL_MASK_ALL));
// Get damage bonus for all schools
for (int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i)
SetStatInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, SpellBaseDamageBonusDone(SpellSchoolMask(1 << i)));
}```
Archived author: ghibly79 • Posted: 2020-03-14T22:49:58.587000+00:00
Original source
thx
Archived author: Viste • Posted: 2020-03-14T22:50:24.720000+00:00
Original source
```C
int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)```
Archived author: Viste • Posted: 2020-03-14T22:51:48.926000+00:00
Original source
and
Archived author: Viste • Posted: 2020-03-14T22:51:51.751000+00:00
Original source
```
void Player::_ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply, bool only_level_scale /*= false*/)
```
Archived author: Viste • Posted: 2020-03-14T22:52:13.174000+00:00
Original source
and maeby somewhere else this what i remember
Archived author: ghibly79 • Posted: 2020-03-14T22:52:44.241000+00:00
Original source
In player.cpp?
Archived author: Viste • Posted: 2020-03-14T22:53:01.295000+00:00
Original source
unit and player yes