1218 {
1220 if (!caster)
1221 return;
1222
1224 return;
1225
1226 std::vector<Creature*> bakers;
1228 {
1230 {
1231 bakers.push_back(creature);
1232 }
1233
1235 {
1236 bakers.push_back(creature);
1237 }
1238
1240 {
1241 bakers.push_back(creature);
1242 }
1243 }
1244 else
1245 {
1247 {
1248 bakers.push_back(creature);
1249 }
1250
1252 {
1253 bakers.push_back(creature);
1254 }
1255
1257 {
1258 bakers.push_back(creature);
1259 }
1260 }
1261
1262 if (!bakers.empty())
1263 {
1265 if (
Creature* creature = *bakers.begin())
1266 {
1268 }
1269 }
1270
1272 }
@ MAP_KALIMDOR
Definition AreaDefines.h:189
@ NPC_NORMAL_THUNDERBREW
Definition brewfest.cpp:261
@ NPC_NORMAL_VOODOO
Definition brewfest.cpp:259
@ NPC_NORMAL_BARLEYBREW
Definition brewfest.cpp:260
@ SPELL_WEAK_ALCOHOL
Definition brewfest.cpp:286
@ NPC_NORMAL_GORDOK
Definition brewfest.cpp:262
@ NPC_NORMAL_DROHN
Definition brewfest.cpp:258
@ SPELL_THROW_MUG_TO_PLAYER
Definition brewfest.cpp:276
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1378
uint32 GetMapId() const
Definition Position.h:281
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2565