1226 {
1228 if (!caster)
1229 return;
1230
1232 return;
1233
1234 std::vector<Creature*> bakers;
1236 {
1238 {
1239 bakers.push_back(creature);
1240 }
1241
1243 {
1244 bakers.push_back(creature);
1245 }
1246
1248 {
1249 bakers.push_back(creature);
1250 }
1251 }
1252 else
1253 {
1255 {
1256 bakers.push_back(creature);
1257 }
1258
1260 {
1261 bakers.push_back(creature);
1262 }
1263
1265 {
1266 bakers.push_back(creature);
1267 }
1268 }
1269
1270 if (!bakers.empty())
1271 {
1273 if (
Creature* creature = *bakers.begin())
1274 {
1276 }
1277 }
1278
1280 }
@ NPC_NORMAL_THUNDERBREW
Definition: brewfest.cpp:266
@ NPC_NORMAL_VOODOO
Definition: brewfest.cpp:264
@ NPC_NORMAL_BARLEYBREW
Definition: brewfest.cpp:265
@ SPELL_WEAK_ALCOHOL
Definition: brewfest.cpp:291
@ NPC_NORMAL_GORDOK
Definition: brewfest.cpp:267
@ NPC_NORMAL_DROHN
Definition: brewfest.cpp:263
@ SPELL_THROW_MUG_TO_PLAYER
Definition: brewfest.cpp:281
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2409
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:1169