1077 {
1079 {
1081 {
1084 switch (itemCaster->GetEntry())
1085 {
1088 item = itemCaster->GetEntry() +
urand(1, 5);
1089 break;
1092 item = 32916 + num;
1093 else
1094 item = 32915;
1095 break;
1096 }
1097
1098 if (item && player->
AddItem(item, 1))
1099 {
1103 }
1104 }
1105 }
1106 }
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
@ YELLOW_EMPTY_KEG
Definition: brewfest.cpp:1069
@ BLUE_EMPTY_KEG
Definition: brewfest.cpp:1068
@ GREEN_EMPTY_KEG
Definition: brewfest.cpp:1067
Player * ToPlayer()
Definition: Object.h:201
void Clear()
Definition: ObjectGuid.h:138
Definition: Player.h:1081
bool AddItem(uint32 itemId, uint32 count)
Definition: Player.cpp:15591
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition: PlayerStorage.cpp:3121
Item * m_CastItem
Definition: Spell.h:524
ObjectGuid m_castItemGUID
Definition: Spell.h:526
Item * GetCastItem()
Definition: SpellScript.cpp:620
Spell * GetSpell()
Definition: SpellScript.h:442
Unit * GetCaster()
Definition: SpellScript.cpp:401