2788 {
2791 if (!target)
2792 return;
2793
2794 uint8 _reduceAmount = 0;
2796 {
2798 _reduceAmount = 9;
2799 break;
2801 _reduceAmount = 12;
2802 break;
2804 _reduceAmount = 3;
2805 break;
2807 _reduceAmount = 3;
2808 break;
2810 _reduceAmount = 2;
2811 break;
2813 _reduceAmount = 2;
2814 break;
2816 _reduceAmount = 4;
2817 break;
2819
2821 return;
2822 else
2824 _reduceAmount = 100;
2825 break;
2826 }
2827
2829 {
2830 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2832 aur->ModStackAmount(-_reduceAmount);
2833 }
2834 }
std::uint8_t uint8
Definition Define.h:109
@ SPELL_BRAIN_LINK_DAMAGE
Definition boss_yoggsaron.cpp:86
@ SPELL_SANITY
Definition boss_yoggsaron.cpp:57
@ SPELL_CANCEL_ILLUSION_AURA
Definition boss_yoggsaron.cpp:141
@ SPELL_MALADY_OF_THE_MIND
Definition boss_yoggsaron.cpp:83
@ SPELL_MALADY_OF_THE_MIND_TRIGGER
Definition boss_yoggsaron.cpp:84
@ SPELL_SARA_PSYCHOSIS_10
Definition boss_yoggsaron.cpp:81
@ SPELL_SARA_PSYCHOSIS_25
Definition boss_yoggsaron.cpp:82
@ SPELL_INDUCE_MADNESS
Definition boss_yoggsaron.cpp:133
@ SPELL_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2774
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2775
@ SPELL_SANITY_SCREEN_EFFECT
Definition boss_yoggsaron.cpp:2773
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:5877
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:1361
float GetPositionZ() const
Definition Position.h:123