588 {
590 {
592
594 {
595 switch (aurEff->GetId())
596 {
598 rank = 1;
599 break;
601 rank = 2;
602 break;
603 default:
604 LOG_ERROR(
"spells",
"Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
605 break;
606 }
607 }
609 if (spellRank > 0 && spellRank <= 8)
611 }
612 }
std::uint32_t uint32
Definition: Define.h:108
#define LOG_ERROR(filterType__,...)
Definition: Log.h:157
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R1
Definition: spell_warlock.cpp:53
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R2
Definition: spell_warlock.cpp:54
@ SPELLFAMILY_WARLOCK
Definition: SharedDefines.h:3533
Definition: SpellAuraEffects.h:39
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
void CreateItem(uint32 effIndex, uint32 itemId)
Definition: SpellScript.cpp:625