2548 {
2551 if (!target)
2552 return;
2553
2554 uint8 _reduceAmount = 0;
2556 {
2558 _reduceAmount = 9;
2559 break;
2561 _reduceAmount = 12;
2562 break;
2564 _reduceAmount = 3;
2565 break;
2567 _reduceAmount = 3;
2568 break;
2570 _reduceAmount = 2;
2571 break;
2573 _reduceAmount = 2;
2574 break;
2576 _reduceAmount = 4;
2577 break;
2579
2581 return;
2582 else
2584 _reduceAmount = 100;
2585 break;
2586 }
2587
2589 {
2590 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2592 aur->ModStackAmount(-_reduceAmount);
2593 }
2594 }
std::uint8_t uint8
Definition Define.h:109
@ SPELL_BRAIN_LINK_DAMAGE
Definition boss_yoggsaron.cpp:81
@ SPELL_SANITY
Definition boss_yoggsaron.cpp:54
@ SPELL_CANCEL_ILLUSION_AURA
Definition boss_yoggsaron.cpp:128
@ SPELL_MALADY_OF_THE_MIND
Definition boss_yoggsaron.cpp:78
@ SPELL_MALADY_OF_THE_MIND_TRIGGER
Definition boss_yoggsaron.cpp:79
@ SPELL_SARA_PSYCHOSIS_10
Definition boss_yoggsaron.cpp:76
@ SPELL_SARA_PSYCHOSIS_25
Definition boss_yoggsaron.cpp:77
@ SPELL_INDUCE_MADNESS
Definition boss_yoggsaron.cpp:120
@ SPELL_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2534
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2535
@ SPELL_SANITY_SCREEN_EFFECT
Definition boss_yoggsaron.cpp:2533
Definition SpellAuras.h:87
Player * GetHitPlayer()
Definition SpellScript.cpp:471
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition SpellScript.cpp:590
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5842
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1350
float GetPositionZ() const
Definition Position.h:123