4161 {
4163 {
4165
4166 for (
uint8 i = 0; i < 5; ++i)
4167 {
4168 if (player->HasItemCount(itemId[i], 1, true))
4169 return;
4170 }
4171
4173 }
4174 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ ITEM_FOAM_SWORD_RED
Definition: spell_generic.cpp:4151
@ ITEM_FOAM_SWORD_PINK
Definition: spell_generic.cpp:4149
@ ITEM_FOAM_SWORD_YELLOW
Definition: spell_generic.cpp:4152
@ ITEM_FOAM_SWORD_GREEN
Definition: spell_generic.cpp:4148
@ ITEM_FOAM_SWORD_BLUE
Definition: spell_generic.cpp:4150
Definition: Player.h:1064
Player * GetHitPlayer()
Definition: SpellScript.cpp:471
void CreateItem(uint32 effIndex, uint32 itemId)
Definition: SpellScript.cpp:625