[DiscordArchive] i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or Spel
[DiscordArchive] i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or Spel
Archived author: Dejavù • Posted: 2021-09-19T15:38:25.902000+00:00
Original source
i had lookup Water Shield, i found it in Spell Work, but what have to search in SpellEffects or SpellAuraEffects.cpp?
Archived author: <o> • Posted: 2021-09-19T15:42:53.692000+00:00
Original source
in your spell viewer program, you should be able to find something like an "effect id" or "effect type". This type id is used as a lookup in this list (each row points to a handler function, the numbers on the right is the index corresponding to the effect id)
<https://github.com/TrinityCore/TrinityCore/blob/0b882b2fa4305c8554d675d6c5ba46457c5188e4/src/server/game/Spells/SpellEffects.cpp#L81>
Archived author: <o> • Posted: 2021-09-19T15:46:17.651000+00:00
Original source
if you can't find effect ids for your spell, maybe someone else can give you a pointer because i don't know a whole lot about the master branch
Archived author: Dejavù • Posted: 2021-09-19T16:20:25.734000+00:00
Original source
for watershield i found in spellwork that effect1 is SPELL_AURA_MOD_POWER_REGEN i found in AuraSpellEffects.cpp this handler: HandleModPowerRegen
Archived author: Dejavù • Posted: 2021-09-19T16:20:56.290000+00:00
Original source
so this function handle indirectly the behaviour of the effect1 of water shield?
Archived author: Dejavù • Posted: 2021-09-19T16:21:20.456000+00:00
Original source
i ask to you this, to understand if i understand XD
Archived author: <o> • Posted: 2021-09-19T16:22:35.763000+00:00
Original source
correct
Archived author: <o> • Posted: 2021-09-19T16:23:08.622000+00:00
Original source
but it also handles the behavior of many other spells with the same effect, that's the point of generic effect handlers
Archived author: Spoony • Posted: 2021-09-19T16:31:47.349000+00:00
Original source
i fixed it, should have checked the good ole interweb first