743 {
744 uint16 count = absorbAmount / 1000;
746 return;
747
750 {
753 switch (se->Id)
754 {
755 case 65686:
756 auraId = 67590;
757 empoweredId = 65748;
758 break;
759 case 65684:
760 auraId = 67590;
761 empoweredId = 65724;
762 break;
763 case 67222:
764 auraId = 67602;
765 empoweredId = 65748;
766 break;
767 case 67176:
768 auraId = 67602;
769 empoweredId = 65724;
770 break;
771 case 67223:
772 auraId = 67603;
773 empoweredId = 65748;
774 break;
775 case 67177:
776 auraId = 67603;
777 empoweredId = 65724;
778 break;
779 case 67224:
780 auraId = 67604;
781 empoweredId = 65748;
782 break;
783 case 67178:
784 auraId = 67604;
785 empoweredId = 65724;
786 break;
787 }
788 if (!owner->HasAura(auraId))
789 {
791 if (--count == 0)
792 return;
793 }
794 if (
Aura* aur = owner->GetAura(auraId))
795 {
796 if (aur->GetStackAmount() + count < 100 )
797 {
798 aur->ModStackAmount(count);
799
802 }
803 else
804 {
805 owner->CastSpell(owner, empoweredId, true);
806 aur->Remove();
807 }
808 }
809 }
810 }
bool roll_chance_i(int chance)
Definition: Random.h:59
std::uint32_t uint32
Definition: Define.h:107
std::uint16_t uint16
Definition: Define.h:108
@ SPELL_SURGE_OF_SPEED
Definition: boss_twin_valkyr.cpp:74
@ SPELL_POWERING_UP
Definition: boss_twin_valkyr.cpp:71
Definition: SpellAuras.h:87
Definition: SpellInfo.h:316
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
WorldObject * GetOwner() const
Definition: SpellScript.cpp:1025
Aura * GetAura() const
Definition: SpellScript.cpp:1045