Skip to content

Commit

Permalink
Spell/Unit: Disable charge proccing in proc system for spellmods
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 29, 2024
1 parent 41f79bb commit 0947117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/game/Entities/Unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -2234,6 +2234,7 @@ class Unit : public WorldObject
SpellAuraProcResult HandleRemoveByDamageChanceProc(ProcExecutionData& data);
SpellAuraProcResult HandleInvisibilityAuraProc(ProcExecutionData& data);
SpellAuraProcResult HandlePeriodicAuraProc(ProcExecutionData& data);
SpellAuraProcResult HandleSpellModProc(ProcExecutionData& data);
SpellAuraProcResult HandleNULLProc(ProcExecutionData& /*data*/)
{
// no proc handler for this aura type
Expand Down
10 changes: 8 additions & 2 deletions src/game/Spells/UnitAuraProcHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ pAuraProcHandler AuraProcHandler[TOTAL_AURAS] =
&Unit::HandleNULLProc, //104 SPELL_AURA_WATER_WALK
&Unit::HandleNULLProc, //105 SPELL_AURA_FEATHER_FALL
&Unit::HandleNULLProc, //106 SPELL_AURA_HOVER
&Unit::HandleNULLProc, //107 SPELL_AURA_ADD_FLAT_MODIFIER
&Unit::HandleNULLProc, //108 SPELL_AURA_ADD_PCT_MODIFIER
&Unit::HandleSpellModProc, //107 SPELL_AURA_ADD_FLAT_MODIFIER
&Unit::HandleSpellModProc, //108 SPELL_AURA_ADD_PCT_MODIFIER
&Unit::HandleNULLProc, //109 SPELL_AURA_ADD_TARGET_TRIGGER
&Unit::HandleNULLProc, //110 SPELL_AURA_MOD_POWER_REGEN_PERCENT
&Unit::HandleMagnetAuraProc, //111 SPELL_AURA_ADD_CASTER_HIT_TRIGGER
Expand Down Expand Up @@ -2928,3 +2928,9 @@ SpellAuraProcResult Unit::HandlePeriodicAuraProc(ProcExecutionData& data)

return SPELL_AURA_PROC_OK;
}

SpellAuraProcResult Unit::HandleSpellModProc(ProcExecutionData& data)
{
// one day if figured out - remove charges through proc system but currently not reliable enough for edge cases
return SPELL_AURA_PROC_CANT_TRIGGER;
}

0 comments on commit 0947117

Please sign in to comment.