◆ GetEmptyEntry()
| uint32 spell_brewfest_unfill_keg::GetEmptyEntry |
( |
uint32 |
baseEntry | ) |
|
|
inlineprivate |
1111 {
1112 switch (baseEntry)
1113 {
1114 case 37893:
1115 case 37894:
1116 case 37895:
1117 case 37896:
1118 case 37897:
1120 case 33017:
1121 case 33018:
1122 case 33019:
1123 case 33020:
1124 case 33021:
1126 case 32915:
1127 case 32917:
1128 case 32918:
1129 case 32919:
1130 case 32920:
1132 }
1133
1134 return 0;
1135 }
@ YELLOW_EMPTY_KEG
Definition brewfest.cpp:1061
@ BLUE_EMPTY_KEG
Definition brewfest.cpp:1060
@ GREEN_EMPTY_KEG
Definition brewfest.cpp:1059
References BLUE_EMPTY_KEG, GREEN_EMPTY_KEG, and YELLOW_EMPTY_KEG.
Referenced by HandleAfterHit().
◆ HandleAfterHit()
| void spell_brewfest_unfill_keg::HandleAfterHit |
( |
| ) |
|
|
inlineprivate |
1138 {
1140 {
1142 {
1145
1146 if (item && player->
AddItem(item, 1))
1147 {
1151 }
1152 }
1153 }
1154 }
std::uint32_t uint32
Definition Define.h:107
void Clear()
Definition ObjectGuid.h:141
Player * ToPlayer()
Definition Object.h:208
bool AddItem(uint32 itemId, uint32 count)
Definition Player.cpp:16030
void DestroyItemCount(uint32 item, uint32 count, bool update, bool unequip_check=false)
Definition PlayerStorage.cpp:3225
Item * GetCastItem()
Definition SpellScript.cpp:625
Spell * GetSpell()
Definition SpellScript.h:443
Unit * GetCaster()
Definition SpellScript.cpp:401
Item * m_CastItem
Definition Spell.h:536
ObjectGuid m_castItemGUID
Definition Spell.h:538
uint32 GetEmptyEntry(uint32 baseEntry)
Definition brewfest.cpp:1110
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: