◆ CheckCast()
612 {
614 {
620 }
622 }
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:604
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 |
625 {
627 {
629
631 {
632 switch (aurEff->GetId())
633 {
635 rank = 1;
636 break;
638 rank = 2;
639 break;
640 default:
641 LOG_ERROR(
"spells",
"Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
642 break;
643 }
644 }
646 if (spellRank > 0 && spellRank <= 8)
648 }
649 }
std::uint32_t uint32
Definition Define.h:107
#define LOG_ERROR(filterType__,...)
Definition Log.h:158
@ SPELLFAMILY_WARLOCK
Definition SharedDefines.h:3791
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: