• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore [DBC] SPELL_AURA_MOD_STAT values

madman1851

Enthusiast
Hi, i'm having kind of a problem with creating custom spells. I want to create aura that modifies stats, but dont know where to look(and set)for MiscValueA value, that sets witch stat should be modified. Could someone point me in right direction? Thank you for your answers
 

Vitrex

Moderator
can't comment a lot on this case, but what i usually do when creating custom spells is : Take another working spell with similar effects as example and copying it and then trying to modify it. try to take the Bless Of Might or Bless of Kings spells as example and check their values in spell.dbc
why these? because one has % of all stats increase while other has flat value,
 

madman1851

Enthusiast
Thank you, this helped a lot :) could you tell me however, where can i find witch stat is changed in this spell, as i cant find it

EDIT: I mean, lets give our spell spell aura 29: mod_stat. Where i can say witch stat is modified?
 
Last edited:

Rochet2

Moderator / Eluna Dev
Maybe this helps:
http://emudevs.com/showthread.php/5790-MiscValueA-in-spell-dbc?p=40161&viewfull=1#post40161
According to that 29 is https://github.com/TrinityCore/Trin...er/game/Spells/Auras/SpellAuraEffects.cpp#L89
&AuraEffect::HandleAuraModStat, // 29 SPELL_AURA_MOD_STAT

so if we look at that function AuraEffect::HandleAuraModStat
https://github.com/TrinityCore/Trin.../game/Spells/Auras/SpellAuraEffects.cpp#L3326
In there we can see that it loops through STAT_STRENGTH to MAX_STATS and compares it to the miscvalue.

If we go look the definition of those they are https://github.com/TrinityCore/Trin.../game/Miscellaneous/SharedDefines.h#L239-L245

So in conclusion you can use one of those as the miscvalueA and that stat is edited. The code comments that if the miscvalue is -1 or -2 then all the stats are edited.
 
Top