◆ CheckCast()
613 {
615 {
621 }
623 }
std::uint8_t uint8
Definition Define.h:109
InventoryResult
Definition Item.h:46
@ EQUIP_ERR_OK
Definition Item.h:47
@ NULL_BAG
Definition Item.h:40
@ NULL_SLOT
Definition Item.h:41
std::vector< ItemPosCount > ItemPosCountVec
Definition Player.h:757
@ SPELL_FAILED_TOO_MANY_OF_ITEM
Definition SharedDefines.h:1066
@ SPELL_CAST_OK
Definition SharedDefines.h:1126
uint8 GetRank() const
Definition SpellInfo.cpp:2896
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
static uint32 const iTypes[8][3]
Definition spell_warlock.cpp:605
References EQUIP_ERR_OK, SpellScript::GetCaster(), SpellInfo::GetRank(), SpellScript::GetSpellInfo(), iTypes, NULL_BAG, NULL_SLOT, SPELL_CAST_OK, and SPELL_FAILED_TOO_MANY_OF_ITEM.
Referenced by Register().
◆ HandleScriptEffect()
| void spell_warl_create_healthstone::HandleScriptEffect |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
626 {
628 {
630
632 {
633 switch (aurEff->GetId())
634 {
636 rank = 1;
637 break;
639 rank = 2;
640 break;
641 default:
642 LOG_ERROR(
"spells",
"Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
643 break;
644 }
645 }
647 if (spellRank > 0 && spellRank <= 8)
649 }
650 }
std::uint32_t uint32
Definition Define.h:107
#define LOG_ERROR(filterType__,...)
Definition Log.h:145
@ SPELLFAMILY_WARLOCK
Definition SharedDefines.h:3789
Definition SpellAuraEffects.h:39
Unit * GetHitUnit()
Definition SpellScript.cpp:448
void CreateItem(uint32 effIndex, uint32 itemId)
Definition SpellScript.cpp:625
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R1
Definition spell_warlock.cpp:57
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R2
Definition spell_warlock.cpp:58
References SpellScript::CreateItem(), SpellScript::GetHitUnit(), SpellInfo::GetRank(), SpellScript::GetSpellInfo(), iTypes, LOG_ERROR, SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R1, SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R2, and SPELLFAMILY_WARLOCK.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
| void spell_warl_create_healthstone::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ Validate()
| bool spell_warl_create_healthstone::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ iTypes
| uint32 const spell_warl_create_healthstone::iTypes[8][3] |
|
staticprivate |
The documentation for this class was generated from the following file: