2564 {
2567 if (!target)
2568 return;
2569
2570 uint8 _reduceAmount = 0;
2572 {
2574 _reduceAmount = 9;
2575 break;
2577 _reduceAmount = 12;
2578 break;
2580 _reduceAmount = 3;
2581 break;
2583 _reduceAmount = 3;
2584 break;
2586 _reduceAmount = 2;
2587 break;
2589 _reduceAmount = 2;
2590 break;
2592 _reduceAmount = 4;
2593 break;
2595
2597 return;
2598 else
2600 _reduceAmount = 100;
2601 break;
2602 }
2603
2605 {
2606 if ((aur->GetStackAmount() - _reduceAmount) <= 20)
2608 aur->ModStackAmount(-_reduceAmount);
2609 }
2610 }
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:130
@ 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:122
@ SPELL_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2550
@ SPELL_YS_LUNATIC_GAZE_TRIGGER
Definition boss_yoggsaron.cpp:2551
@ SPELL_SANITY_SCREEN_EFFECT
Definition boss_yoggsaron.cpp:2549
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:1389
float GetPositionZ() const
Definition Position.h:123