[DiscordArchive] how to make a zone instant logout?
[DiscordArchive] how to make a zone instant logout?
Archived author: Viste • Posted: 2020-03-14T22:42:10.515000+00:00
Original source
to recalculate spellpower )
Archived author: Viste • Posted: 2020-03-14T22:42:35.800000+00:00
Original source
and its just a variable )
Archived author: Viste • Posted: 2020-03-14T22:44:40.007000+00:00
Original source
ApplySpellPowerBonus used for add some bonus )
Archived author: Viste • Posted: 2020-03-14T22:44:45.606000+00:00
Original source
from item for example
Archived author: ghibly79 • Posted: 2020-03-14T22:44:58.094000+00:00
Original source
In StatSystem.cpp there's this code with comments:
Archived author: ghibly79 • Posted: 2020-03-14T22:45:01.844000+00:00
Original source
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: Viste • Posted: 2020-03-14T22:45:41.384000+00:00
Original source
its just for update data in client
Archived author: Viste • Posted: 2020-03-14T22:45:50.676000+00:00
Original source
that alredy calculate by server side
Archived author: ghibly79 • Posted: 2020-03-14T22:45:52.866000+00:00
Original source
I tried looking into Unit.cpp for SpellDamageBonusDone but can't figure out how the calculation is done
Archived author: ghibly79 • Posted: 2020-03-14T22:46:01.522000+00:00
Original source
Ah, I see