◆ HandleScript()
| void spell_gen_upper_deck_create_foam_sword::HandleScript |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
4250 {
4252 {
4254
4255 for (
uint8 i = 0; i < 5; ++i)
4256 {
4257 if (player->HasItemCount(itemId[i], 1, true))
4258 return;
4259 }
4260
4262 }
4263 }
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:476
void CreateItem(uint32 effIndex, uint32 itemId)
Definition SpellScript.cpp:630
@ ITEM_FOAM_SWORD_RED
Definition spell_generic.cpp:4240
@ ITEM_FOAM_SWORD_PINK
Definition spell_generic.cpp:4238
@ ITEM_FOAM_SWORD_YELLOW
Definition spell_generic.cpp:4241
@ ITEM_FOAM_SWORD_GREEN
Definition spell_generic.cpp:4237
@ ITEM_FOAM_SWORD_BLUE
Definition spell_generic.cpp:4239
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: