840 {
843 return;
844
846 return;
847
849 if (!aur)
850 {
852 return;
853 }
854
855
857 {
858 if (privateLevel)
859 {
862 }
863
865 return;
866 }
867
870 switch (privateLevel)
871 {
872 case 0:
873 if (stack > 1)
874 {
877 privateLevel++;
878 mode = 1;
879 break;
880 }
881
883 {
884 fatigueAura->ModStackAmount(-4);
885 }
886 break;
887 case 1:
888
889 if (stack < 2)
890 {
893 privateLevel--;
894 mode = 2;
895 }
896 else if (stack > 2)
897 {
900 privateLevel++;
901 }
904 break;
905 case 2:
906
907 if (stack < 3)
908 {
910 privateLevel--;
912 }
913 else if (stack > 4)
914 {
916 privateLevel++;
918 }
921 break;
922 case 3:
923
924 if (stack < 5)
925 {
927 privateLevel--;
929 }
932 break;
933 }
934
935
937
938
939 if (mode)
940 if (
Aura* base = aurEff->GetBase())
942 {
943 aEff->SetAmount(mode == 1 ? 0 : -50);
945 }
946 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
@ EFFECT_0
Definition SharedDefines.h:31
@ MOVE_RUN
Definition UnitDefines.h:350
@ SPELL_RAM_EXHAUSTED
Definition brewfest.cpp:817
@ SPELL_CANTER
Definition brewfest.cpp:814
@ CREDIT_TROT
Definition brewfest.cpp:819
@ CREDIT_GALLOP
Definition brewfest.cpp:821
@ SPELL_GALLOP
Definition brewfest.cpp:815
@ CREDIT_CANTER
Definition brewfest.cpp:820
@ RACING_RAM_MODEL
Definition brewfest.cpp:823
@ SPELL_TROT
Definition brewfest.cpp:813
@ SPELL_RAM_FATIGUE
Definition brewfest.cpp:816
Definition SpellAuraEffects.h:39
Unit * GetCaster() const
Definition SpellScript.cpp:1020
Definition SpellAuras.h:87
void SetStackAmount(uint8 num)
Definition SpellAuras.cpp:995
uint8 GetStackAmount() const
Definition SpellAuras.h:148
Player * ToPlayer()
Definition Object.h:202
void KilledMonsterCredit(uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
Definition PlayerQuest.cpp:1927
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5614
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:1179
bool IsMounted() const
Definition Unit.h:1807
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:4942
uint32 GetMountID() const
Definition Unit.h:1808
void UpdateSpeed(UnitMoveType mtype, bool forced)
Definition Unit.cpp:14301
uint32 questTick
Definition brewfest.cpp:831