4135 {
4137 {
4139
4140 for (
uint8 i = 0; i < 5; ++i)
4141 {
4142 if (player->HasItemCount(itemId[i], 1, true))
4143 return;
4144 }
4145
4147 }
4148 }
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:4125
@ ITEM_FOAM_SWORD_PINK
Definition: spell_generic.cpp:4123
@ ITEM_FOAM_SWORD_YELLOW
Definition: spell_generic.cpp:4126
@ ITEM_FOAM_SWORD_GREEN
Definition: spell_generic.cpp:4122
@ ITEM_FOAM_SWORD_BLUE
Definition: spell_generic.cpp:4124
Definition: Player.h:1081
Player * GetHitPlayer()
Definition: SpellScript.cpp:471
void CreateItem(uint32 effIndex, uint32 itemId)
Definition: SpellScript.cpp:625