754 {
755 uint16 count = absorbAmount / 1000;
757 return;
758
761 {
764 switch (se->Id)
765 {
766 case 65686:
767 auraId = 67590;
768 empoweredId = 65748;
769 break;
770 case 65684:
771 auraId = 67590;
772 empoweredId = 65724;
773 break;
774 case 67222:
775 auraId = 67602;
776 empoweredId = 65748;
777 break;
778 case 67176:
779 auraId = 67602;
780 empoweredId = 65724;
781 break;
782 case 67223:
783 auraId = 67603;
784 empoweredId = 65748;
785 break;
786 case 67177:
787 auraId = 67603;
788 empoweredId = 65724;
789 break;
790 case 67224:
791 auraId = 67604;
792 empoweredId = 65748;
793 break;
794 case 67178:
795 auraId = 67604;
796 empoweredId = 65724;
797 break;
798 }
799 if (!owner->HasAura(auraId))
800 {
802 if (--count == 0)
803 return;
804 }
805 if (
Aura* aur = owner->GetAura(auraId))
806 {
807 if (aur->GetStackAmount() + count < 100 )
808 {
809 aur->ModStackAmount(count);
810
813 }
814 else
815 {
816 owner->CastSpell(owner, empoweredId, true);
817 aur->Remove();
818 }
819 }
820 }
821 }
std::uint32_t uint32
Definition Define.h:107
std::uint16_t uint16
Definition Define.h:108
bool roll_chance_i(int chance)
Definition Random.h:63
@ SPELL_SURGE_OF_SPEED
Definition boss_twin_valkyr.cpp:74
@ SPELL_POWERING_UP
Definition boss_twin_valkyr.cpp:71
SpellInfo const * GetSpellInfo() const
Definition SpellScript.cpp:1011
WorldObject * GetOwner() const
Definition SpellScript.cpp:1038
Aura * GetAura() const
Definition SpellScript.cpp:1058
Definition SpellAuras.h:88
Definition SpellInfo.h:340