Question regarding a spell's behavior

Hi guys,

I’m currently working on improving Gluth’s script in the 3.3.5 branch (this is one of the bugged aspect of the encounter I’m trying to fix: https://github.com/TrinityCore/TrinityCore/issues/14806).

Anyway, I need your help for the spell 28374: Decimate.

This spell should have 3 aspects:

  1. put everyone (except Gluth. meaning players & zombies are affected) to 5% of their HPs.

  2. stun Gluth for a second

  3. Makes the zombie loose any reaction toward players and make them run toward gluth

Aspect 3 isnt implemented yet. Aspect 1 is there but bugged (it also affect Gluth). Aspect 2 is working as intended.

According to the dbc, the spell has 3 effects: one SPELL_EFFECT_APPLY_AURA (the stun, good), one SPELL_EFFECT_SCRIPT_EFFECT and then one SPELL_EFFECT_SEND_EVENT (with EffectMiscValueA = 10495).

My question is: where can i find the current behavior of the spell? where can i find the info related to SPELL_EFFECT_SCRIPT_EFFECT and SPELL_EFFECT_SEND_EVENT ?? I looked in the spell_scripts and event_scripts tables but coudnt find anything.

Thank!

tot78/chaodhib

5 hours of search later…

https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Spells/SpellEffects.cpp#L3663
omfg, fml

This stuff shouldnt be here at all, right? The 28374 and 54426 spells are used only by Gluth.

5 hours of search later…

https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Spells/SpellEffects.cpp#L3663
omfg, fml

This stuff shouldnt be here at all, right? The 28374 and 54426 spells are used only by Gluth.

​This should be handled by spell script.