◆ GetEmptyEntry()
| uint32 spell_brewfest_unfill_keg::GetEmptyEntry |
( |
uint32 |
baseEntry | ) |
|
|
inlineprivate |
1112 {
1113 switch (baseEntry)
1114 {
1115 case 37893:
1116 case 37894:
1117 case 37895:
1118 case 37896:
1119 case 37897:
1121 case 33017:
1122 case 33018:
1123 case 33019:
1124 case 33020:
1125 case 33021:
1127 case 32915:
1128 case 32917:
1129 case 32918:
1130 case 32919:
1131 case 32920:
1133 }
1134
1135 return 0;
1136 }
@ YELLOW_EMPTY_KEG
Definition brewfest.cpp:1062
@ BLUE_EMPTY_KEG
Definition brewfest.cpp:1061
@ GREEN_EMPTY_KEG
Definition brewfest.cpp:1060
References BLUE_EMPTY_KEG, GREEN_EMPTY_KEG, and YELLOW_EMPTY_KEG.
Referenced by HandleAfterHit().
◆ HandleAfterHit()
| void spell_brewfest_unfill_keg::HandleAfterHit |
( |
| ) |
|
|
inlineprivate |
1139 {
1141 {
1143 {
1146
1147 if (item && player->
AddItem(item, 1))
1148 {
1152 }
1153 }
1154 }
1155 }
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:16080
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:1111
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: