1078 {
1080 {
1082 {
1085 switch (itemCaster->GetEntry())
1086 {
1089 item = itemCaster->GetEntry() +
urand(1, 5);
1090 break;
1093 item = 32916 + num;
1094 else
1095 item = 32915;
1096 break;
1097 }
1098
1099 if (item && player->
AddItem(item, 1))
1100 {
1104 }
1105 }
1106 }
1107 }
std::uint8_t uint8
Definition: Define.h:110
std::uint32_t uint32
Definition: Define.h:108
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ YELLOW_EMPTY_KEG
Definition: brewfest.cpp:1070
@ BLUE_EMPTY_KEG
Definition: brewfest.cpp:1069
@ GREEN_EMPTY_KEG
Definition: brewfest.cpp:1068
Player * ToPlayer()
Definition: Object.h:195
void Clear()
Definition: ObjectGuid.h:140
Definition: Player.h:1046
bool AddItem(uint32 itemId, uint32 count)
Definition: Player.cpp:15441
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition: PlayerStorage.cpp:3149
Item * m_CastItem
Definition: Spell.h:521
ObjectGuid m_castItemGUID
Definition: Spell.h:523
Item * GetCastItem()
Definition: SpellScript.cpp:620
Spell * GetSpell()
Definition: SpellScript.h:442
Unit * GetCaster()
Definition: SpellScript.cpp:401