839 {
842 return;
843
845 return;
846
848 if (!aur)
849 {
851 return;
852 }
853
854
856 {
857 if (privateLevel)
858 {
861 }
862
864 return;
865 }
866
869 switch (privateLevel)
870 {
871 case 0:
872 if (stack > 1)
873 {
876 privateLevel++;
877 mode = 1;
878 break;
879 }
880
882 {
883 fatigueAura->ModStackAmount(-4);
884 }
885 break;
886 case 1:
887
888 if (stack < 2)
889 {
892 privateLevel--;
893 mode = 2;
894 }
895 else if (stack > 2)
896 {
899 privateLevel++;
900 }
903 break;
904 case 2:
905
906 if (stack < 3)
907 {
909 privateLevel--;
911 }
912 else if (stack > 4)
913 {
915 privateLevel++;
917 }
920 break;
921 case 3:
922
923 if (stack < 5)
924 {
926 privateLevel--;
928 }
931 break;
932 }
933
934
936
937
938 if (mode)
939 if (
Aura* base = aurEff->GetBase())
941 {
942 aEff->SetAmount(mode == 1 ? 0 : -50);
944 }
945 }
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:816
@ SPELL_CANTER
Definition brewfest.cpp:813
@ CREDIT_TROT
Definition brewfest.cpp:818
@ CREDIT_GALLOP
Definition brewfest.cpp:820
@ SPELL_GALLOP
Definition brewfest.cpp:814
@ CREDIT_CANTER
Definition brewfest.cpp:819
@ RACING_RAM_MODEL
Definition brewfest.cpp:822
@ SPELL_TROT
Definition brewfest.cpp:812
@ SPELL_RAM_FATIGUE
Definition brewfest.cpp:815
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:201
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:5613
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:1178
bool IsMounted() const
Definition Unit.h:1800
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:4941
uint32 GetMountID() const
Definition Unit.h:1801
void UpdateSpeed(UnitMoveType mtype, bool forced)
Definition Unit.cpp:14302
uint32 questTick
Definition brewfest.cpp:830