2714 {
2717 if (!target)
2718 return;
2719
2720 uint8 _reduceAmount = 0;
2722 {
2724 _reduceAmount = 9;
2725 break;
2727 _reduceAmount = 12;
2728 break;
2730 _reduceAmount = 3;
2731 break;
2733 _reduceAmount = 3;
2734 break;
2736 _reduceAmount = 2;
2737 break;
2739 _reduceAmount = 2;
2740 break;
2742 _reduceAmount = 4;
2743 break;
2745
2747 return;
2748 else
2750 _reduceAmount = 100;
2751 break;
2752 }
2753
2755 {
2756 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2758 aur->ModStackAmount(-_reduceAmount);
2759 }
2760 }
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:2700
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2701
@ SPELL_SANITY_SCREEN_EFFECT
Definition boss_yoggsaron.cpp:2699
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:5711
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:1194
float GetPositionZ() const
Definition Position.h:123