◆ GetEmptyEntry()
uint32 spell_brewfest_unfill_keg::GetEmptyEntry |
( |
uint32 |
baseEntry | ) |
|
|
inlineprivate |
1119 {
1120 switch (baseEntry)
1121 {
1122 case 37893:
1123 case 37894:
1124 case 37895:
1125 case 37896:
1126 case 37897:
1128 case 33017:
1129 case 33018:
1130 case 33019:
1131 case 33020:
1132 case 33021:
1134 case 32915:
1135 case 32917:
1136 case 32918:
1137 case 32919:
1138 case 32920:
1140 }
1141
1142 return 0;
1143 }
@ YELLOW_EMPTY_KEG
Definition brewfest.cpp:1069
@ BLUE_EMPTY_KEG
Definition brewfest.cpp:1068
@ GREEN_EMPTY_KEG
Definition brewfest.cpp:1067
References BLUE_EMPTY_KEG, GREEN_EMPTY_KEG, and YELLOW_EMPTY_KEG.
Referenced by HandleAfterHit().
◆ HandleAfterHit()
void spell_brewfest_unfill_keg::HandleAfterHit |
( |
| ) |
|
|
inlineprivate |
1146 {
1148 {
1150 {
1153
1154 if (item && player->
AddItem(item, 1))
1155 {
1159 }
1160 }
1161 }
1162 }
std::uint32_t uint32
Definition Define.h:107
void Clear()
Definition ObjectGuid.h:138
Player * ToPlayer()
Definition Object.h:201
bool AddItem(uint32 itemId, uint32 count)
Definition Player.cpp:15614
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition PlayerStorage.cpp:3121
Item * GetCastItem()
Definition SpellScript.cpp:620
Spell * GetSpell()
Definition SpellScript.h:442
Unit * GetCaster()
Definition SpellScript.cpp:401
Item * m_CastItem
Definition Spell.h:524
ObjectGuid m_castItemGUID
Definition Spell.h:526
uint32 GetEmptyEntry(uint32 baseEntry)
Definition brewfest.cpp:1118
References Player::AddItem(), ObjectGuid::Clear(), Player::DestroyItemCount(), SpellScript::GetCaster(), SpellScript::GetCastItem(), GetEmptyEntry(), SpellScript::GetSpell(), Spell::m_CastItem, Spell::m_castItemGUID, and Object::ToPlayer().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_brewfest_unfill_keg::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: