Skip to content

Commit

Permalink
Spells: Ensure that SpellMods have the right No. of charges
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 29, 2024
1 parent 41f79bb commit c1fc7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ void Aura::HandleAddModifier(bool apply, bool Real)
priority,
// prevent expire spell mods with (charges > 0 && m_stackAmount > 1)
// all this spell expected expire not at use but at spell proc event check
spellProto->StackAmount > 1 ? 0 : GetHolder()->GetAuraCharges());
spellProto->StackAmount < 1 ? 0 : GetHolder()->GetAuraCharges());
}

static_cast<Player*>(GetTarget())->AddSpellMod(m_spellmod, apply);
Expand Down

0 comments on commit c1fc7fb

Please sign in to comment.