◆ HandleScript()
void spell_gen_upper_deck_create_foam_sword::HandleScript |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
4136 {
4138 {
4140
4141 for (
uint8 i = 0; i < 5; ++i)
4142 {
4143 if (player->HasItemCount(itemId[i], 1, true))
4144 return;
4145 }
4146
4148 }
4149 }
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:4126
@ ITEM_FOAM_SWORD_PINK
Definition spell_generic.cpp:4124
@ ITEM_FOAM_SWORD_YELLOW
Definition spell_generic.cpp:4127
@ ITEM_FOAM_SWORD_GREEN
Definition spell_generic.cpp:4123
@ ITEM_FOAM_SWORD_BLUE
Definition spell_generic.cpp:4125
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: