◆ CheckCast()
583 {
585 {
591 }
593 }
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:776
@ SPELL_FAILED_TOO_MANY_OF_ITEM
Definition SharedDefines.h:1078
@ SPELL_CAST_OK
Definition SharedDefines.h:1138
uint8 GetRank() const
Definition SpellInfo.cpp:2494
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
static uint32 const iTypes[8][3]
Definition spell_warlock.cpp:575
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 |
596 {
598 {
600
602 {
603 switch (aurEff->GetId())
604 {
606 rank = 1;
607 break;
609 rank = 2;
610 break;
611 default:
612 LOG_ERROR(
"spells",
"Unknown rank of Improved Healthstone id: {}", aurEff->GetId());
613 break;
614 }
615 }
617 if (spellRank > 0 && spellRank <= 8)
619 }
620 }
std::uint32_t uint32
Definition Define.h:107
#define LOG_ERROR(filterType__,...)
Definition Log.h:157
@ 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
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R1
Definition spell_warlock.cpp:53
@ SPELL_WARLOCK_IMPROVED_HEALTHSTONE_R2
Definition spell_warlock.cpp:54
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: