1225 {
1227 if (!caster)
1228 return;
1229
1231 return;
1232
1233 std::vector<Creature*> bakers;
1235 {
1237 {
1238 bakers.push_back(creature);
1239 }
1240
1242 {
1243 bakers.push_back(creature);
1244 }
1245
1247 {
1248 bakers.push_back(creature);
1249 }
1250 }
1251 else
1252 {
1254 {
1255 bakers.push_back(creature);
1256 }
1257
1259 {
1260 bakers.push_back(creature);
1261 }
1262
1264 {
1265 bakers.push_back(creature);
1266 }
1267 }
1268
1269 if (!bakers.empty())
1270 {
1272 if (
Creature* creature = *bakers.begin())
1273 {
1275 }
1276 }
1277
1279 }
@ NPC_NORMAL_THUNDERBREW
Definition: brewfest.cpp:268
@ NPC_NORMAL_VOODOO
Definition: brewfest.cpp:266
@ NPC_NORMAL_BARLEYBREW
Definition: brewfest.cpp:267
@ SPELL_WEAK_ALCOHOL
Definition: brewfest.cpp:293
@ NPC_NORMAL_GORDOK
Definition: brewfest.cpp:269
@ NPC_NORMAL_DROHN
Definition: brewfest.cpp:265
@ SPELL_THROW_MUG_TO_PLAYER
Definition: brewfest.cpp:283
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
uint32 GetMapId() const
Definition: Position.h: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:1168