2717 {
2720 if (!target)
2721 return;
2722
2723 uint8 _reduceAmount = 0;
2725 {
2727 _reduceAmount = 9;
2728 break;
2730 _reduceAmount = 12;
2731 break;
2733 _reduceAmount = 3;
2734 break;
2736 _reduceAmount = 3;
2737 break;
2739 _reduceAmount = 2;
2740 break;
2742 _reduceAmount = 2;
2743 break;
2745 _reduceAmount = 4;
2746 break;
2748
2750 return;
2751 else
2753 _reduceAmount = 100;
2754 break;
2755 }
2756
2758 {
2759 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2761 aur->ModStackAmount(-_reduceAmount);
2762 }
2763 }
std::uint8_t uint8
Definition: Define.h:109
@ SPELL_BRAIN_LINK_DAMAGE
Definition: boss_yoggsaron.cpp:80
@ SPELL_SANITY
Definition: boss_yoggsaron.cpp:53
@ SPELL_CANCEL_ILLUSION_AURA
Definition: boss_yoggsaron.cpp:128
@ SPELL_MALADY_OF_THE_MIND
Definition: boss_yoggsaron.cpp:77
@ SPELL_MALADY_OF_THE_MIND_TRIGGER
Definition: boss_yoggsaron.cpp:78
@ SPELL_SARA_PSYCHOSIS_10
Definition: boss_yoggsaron.cpp:75
@ SPELL_SARA_PSYCHOSIS_25
Definition: boss_yoggsaron.cpp:76
@ SPELL_INDUCE_MADNESS
Definition: boss_yoggsaron.cpp:120
@ SPELL_LUNATIC_GAZE_TRIGGER
Definition: boss_yoggsaron.cpp:2703
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition: boss_yoggsaron.cpp:2704
@ SPELL_SANITY_SCREEN_EFFECT
Definition: boss_yoggsaron.cpp:2702
float GetPositionZ() const
Definition: Position.h:118
Definition: Player.h:1081
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5581
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:1167
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