◆ CheckCast()
584 {
586 {
592 }
594 }
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:777
@ SPELL_FAILED_TOO_MANY_OF_ITEM
Definition SharedDefines.h:1078
@ SPELL_CAST_OK
Definition SharedDefines.h:1138
uint8 GetRank() const
Definition SpellInfo.cpp:2506
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
static uint32 const iTypes[8][3]
Definition spell_warlock.cpp:576
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 |
597 {
599 {
601
603 {
604 switch (aurEff->GetId())
605 {
607 rank = 1;
608 break;
610 rank = 2;
611 break;
612 default:
613 LOG_ERROR(
"spells",
"Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
614 break;
615 }
616 }
618 if (spellRank > 0 && spellRank <= 8)
620 }
621 }
std::uint32_t uint32
Definition Define.h:107
#define LOG_ERROR(filterType__,...)
Definition Log.h:157
@ SPELLFAMILY_WARLOCK
Definition SharedDefines.h:3549
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:54
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R2
Definition spell_warlock.cpp:55
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: