[DiscordArchive] anyone know if you can/how to make a buff that gives a % bonus to a stat rating (not an actual stat
[DiscordArchive] anyone know if you can/how to make a buff that gives a % bonus to a stat rating (not an actual stat
Archived author: Dreadmaster • Posted: 2022-10-05T18:38:44.147000+00:00
Original source
anyone know if you can/how to make a buff that gives a % bonus to a stat rating (not an actual stat like str, but ratings like crit rating or haste rating) in AC via sql/dbc editing?
Archived author: robinsch • Posted: 2022-10-05T18:41:19.036000+00:00
Original source
> SPELL_AURA_MOD_RATING
or
> SPELL_AURA_MOD_RATING_FROM_STAT
Archived author: Dreadmaster • Posted: 2022-10-05T18:44:48.402000+00:00
Original source
I thought first one only did flat numbers, and I don’t think the second can mod a rating by % of itself or another rating, but I could have messed something up
Archived author: robinsch • Posted: 2022-10-05T18:45:10.305000+00:00
Original source
Either you manipulate the basepoints through a spellscript
Archived author: robinsch • Posted: 2022-10-05T18:45:27.251000+00:00
Original source
and second can modify by stats (str, agi, ..)
Archived author: Dreadmaster • Posted: 2022-10-05T18:46:47.778000+00:00
Original source
Expected spellscript to be the answer, thanks
Archived author: robinsch • Posted: 2022-10-05T18:46:53.461000+00:00
Original source
or you change the implementation of ```AuraEffect::HandleModRatingFromStat``` to support modifying by combat rating
Archived author: robinsch • Posted: 2022-10-05T18:47:32.889000+00:00
Original source
but beware, it will be a pain to work with these stat based or pct increases, you will have to change the implementation anyway because it doesn't keep track of pct bonuses
Archived author: Dreadmaster • Posted: 2022-10-05T18:48:04.078000+00:00
Original source
Yeah, was trying to avoid that, thanks again
Archived author: <o> • Posted: 2022-10-05T18:49:50.310000+00:00
Original source
you can also implement a hack near the readers by changing `Player::GetRatingBonusValue`, that should avoid most of the headaches of having to store additional values