2712 {
2715 if (!target)
2716 return;
2717
2718 uint8 _reduceAmount = 0;
2720 {
2722 _reduceAmount = 9;
2723 break;
2725 _reduceAmount = 12;
2726 break;
2728 _reduceAmount = 3;
2729 break;
2731 _reduceAmount = 3;
2732 break;
2734 _reduceAmount = 2;
2735 break;
2737 _reduceAmount = 2;
2738 break;
2740 _reduceAmount = 4;
2741 break;
2743
2745 return;
2746 else
2748 _reduceAmount = 100;
2749 break;
2750 }
2751
2753 {
2754 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2756 aur->ModStackAmount(-_reduceAmount);
2757 }
2758 }
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:2698
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2699
@ SPELL_SANITY_SCREEN_EFFECT
Definition boss_yoggsaron.cpp:2697
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:5649
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