◆ HandleScript()
void spell_gen_upper_deck_create_foam_sword::HandleScript |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
4131 {
4133 {
4135
4136 for (
uint8 i = 0; i < 5; ++i)
4137 {
4138 if (player->HasItemCount(itemId[i], 1, true))
4139 return;
4140 }
4141
4143 }
4144 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
Player * GetHitPlayer()
Definition SpellScript.cpp:471
void CreateItem(uint32 effIndex, uint32 itemId)
Definition SpellScript.cpp:625
@ ITEM_FOAM_SWORD_RED
Definition spell_generic.cpp:4121
@ ITEM_FOAM_SWORD_PINK
Definition spell_generic.cpp:4119
@ ITEM_FOAM_SWORD_YELLOW
Definition spell_generic.cpp:4122
@ ITEM_FOAM_SWORD_GREEN
Definition spell_generic.cpp:4118
@ ITEM_FOAM_SWORD_BLUE
Definition spell_generic.cpp:4120
References SpellScript::CreateItem(), SpellScript::GetHitPlayer(), ITEM_FOAM_SWORD_BLUE, ITEM_FOAM_SWORD_GREEN, ITEM_FOAM_SWORD_PINK, ITEM_FOAM_SWORD_RED, ITEM_FOAM_SWORD_YELLOW, and urand().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_gen_upper_deck_create_foam_sword::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: