4148 {
4150 {
4152
4153 for (
uint8 i = 0; i < 5; ++i)
4154 {
4155 if (player->HasItemCount(itemId[i], 1, true))
4156 return;
4157 }
4158
4160 }
4161 }
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
@ ITEM_FOAM_SWORD_RED
Definition: spell_generic.cpp:4138
@ ITEM_FOAM_SWORD_PINK
Definition: spell_generic.cpp:4136
@ ITEM_FOAM_SWORD_YELLOW
Definition: spell_generic.cpp:4139
@ ITEM_FOAM_SWORD_GREEN
Definition: spell_generic.cpp:4135
@ ITEM_FOAM_SWORD_BLUE
Definition: spell_generic.cpp:4137
Definition: Player.h:1064
Player * GetHitPlayer()
Definition: SpellScript.cpp:471
void CreateItem(uint32 effIndex, uint32 itemId)
Definition: SpellScript.cpp:625