◆ HandleScript()
| void spell_gen_upper_deck_create_foam_sword::HandleScript |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
4240 {
4242 {
4244
4245 for (
uint8 i = 0; i < 5; ++i)
4246 {
4247 if (player->HasItemCount(itemId[i], 1, true))
4248 return;
4249 }
4250
4252 }
4253 }
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:4230
@ ITEM_FOAM_SWORD_PINK
Definition spell_generic.cpp:4228
@ ITEM_FOAM_SWORD_YELLOW
Definition spell_generic.cpp:4231
@ ITEM_FOAM_SWORD_GREEN
Definition spell_generic.cpp:4227
@ ITEM_FOAM_SWORD_BLUE
Definition spell_generic.cpp:4229
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: