837 {
840 return;
841
843 return;
844
846 if (!aur)
847 {
849 return;
850 }
851
852
854 {
855 if (privateLevel)
856 {
859 }
860
862 return;
863 }
864
867 switch (privateLevel)
868 {
869 case 0:
870 if (stack > 1)
871 {
874 privateLevel++;
875 mode = 1;
876 break;
877 }
878
880 {
881 fatigueAura->ModStackAmount(-4);
882 }
883 break;
884 case 1:
885
886 if (stack < 2)
887 {
890 privateLevel--;
891 mode = 2;
892 }
893 else if (stack > 2)
894 {
897 privateLevel++;
898 }
901 break;
902 case 2:
903
904 if (stack < 3)
905 {
907 privateLevel--;
909 }
910 else if (stack > 4)
911 {
913 privateLevel++;
915 }
918 break;
919 case 3:
920
921 if (stack < 5)
922 {
924 privateLevel--;
926 }
929 break;
930 }
931
932
934
935
936 if (mode)
937 if (
Aura* base = aurEff->GetBase())
939 {
940 aEff->SetAmount(mode == 1 ? 0 : -50);
942 }
943 }
std::uint8_t uint8
Definition: Define.h:110
std::uint32_t uint32
Definition: Define.h:108
@ MOVE_RUN
Definition: Unit.h:379
@ SPELL_RAM_EXHAUSTED
Definition: brewfest.cpp:814
@ SPELL_CANTER
Definition: brewfest.cpp:811
@ CREDIT_TROT
Definition: brewfest.cpp:816
@ CREDIT_GALLOP
Definition: brewfest.cpp:818
@ SPELL_GALLOP
Definition: brewfest.cpp:812
@ CREDIT_CANTER
Definition: brewfest.cpp:817
@ RACING_RAM_MODEL
Definition: brewfest.cpp:820
@ SPELL_TROT
Definition: brewfest.cpp:810
@ SPELL_RAM_FATIGUE
Definition: brewfest.cpp:813
@ EFFECT_0
Definition: SharedDefines.h:30
Player * ToPlayer()
Definition: Object.h:195
void KilledMonsterCredit(uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
Definition: PlayerQuest.cpp:1911
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5499
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:1169
bool IsMounted() const
Definition: Unit.h:1542
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4835
uint32 GetMountID() const
Definition: Unit.h:1543
void UpdateSpeed(UnitMoveType mtype, bool forced)
Definition: Unit.cpp:14147
Definition: SpellAuraEffects.h:39
Definition: SpellAuras.h:87
void SetStackAmount(uint8 num)
Definition: SpellAuras.cpp:1009
uint8 GetStackAmount() const
Definition: SpellAuras.h:148
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
uint32 questTick
Definition: brewfest.cpp:828