mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8947] Implement aura SPELL_AURA_MOD_DURATION_OF_MAGIC_EFFECTS (245)
Used in spell 6117 (5/6 ranks) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
87cc1412f8
commit
58551fb582
3 changed files with 5 additions and 2 deletions
|
|
@ -10857,6 +10857,9 @@ int32 Unit::CalculateSpellDuration(SpellEntry const* spellProto, uint8 effect_in
|
|||
durationMod_always+=target->GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_DURATION_OF_EFFECTS_BY_DISPEL, spellProto->Dispel);
|
||||
// Find max mod (negative bonus)
|
||||
int32 durationMod_not_stack = target->GetMaxNegativeAuraModifierByMiscValue(SPELL_AURA_MECHANIC_DURATION_MOD_NOT_STACK, mechanic);
|
||||
|
||||
if (!IsPositiveSpell(spellProto->Id))
|
||||
durationMod_always += target->GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_DURATION_OF_MAGIC_EFFECTS, spellProto->DmgClass);
|
||||
|
||||
int32 durationMod = 0;
|
||||
// Select strongest negative mod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue