442 {
444 if (!player)
445 return;
446
449 {
452 break;
455 break;
458 break;
461 break;
464 break;
465 }
466
467 if (spellId)
468 {
469 player->
CastSpell(player, spellId,
true);
471 {
472 if (aur->GetBase()->GetStackAmount() >= 5)
473 {
474 switch (spellId)
475 {
478 break;
481 break;
484 break;
487 break;
490 break;
491 }
492
495 for (Unit::AuraEffectList::const_iterator i = dummyAuras.begin(); i != dummyAuras.end(); ++i)
496 {
498 if ((*i)->GetBase()->GetStackAmount() >= 5)
499 ++count;
500 }
501
502
503 if (count >= 5)
504 {
511 }
512 }
513 }
514 }
515 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_FEAST_ON_PIE
Definition: pilgrims_bounty.cpp:74
@ SPELL_PLAYER_TURKEY
Definition: pilgrims_bounty.cpp:78
@ SPELL_WELL_FED_TURKEY
Definition: pilgrims_bounty.cpp:84
@ SPELL_WELL_FED_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:88
@ SPELL_PLAYER_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:82
@ SPELL_WELL_FED_STUFFING
Definition: pilgrims_bounty.cpp:85
@ SPELL_FEAST_ON_TURKEY
Definition: pilgrims_bounty.cpp:72
@ SPELL_PLAYER_CRANBERRY
Definition: pilgrims_bounty.cpp:81
@ SPELL_FEAST_ON_STUFFING
Definition: pilgrims_bounty.cpp:73
@ SPELL_PLAYER_STUFFING
Definition: pilgrims_bounty.cpp:79
@ SPELL_SPIRIT_OF_SHARING
Definition: pilgrims_bounty.cpp:96
@ SPELL_PLAYER_PIE
Definition: pilgrims_bounty.cpp:80
@ SPELL_FEAST_ON_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:76
@ SPELL_WELL_FED_PIE
Definition: pilgrims_bounty.cpp:86
@ SPELL_WELL_FED_CRANBERRY
Definition: pilgrims_bounty.cpp:87
@ SPELL_FEAST_ON_CRANBERRY
Definition: pilgrims_bounty.cpp:75
@ SPELL_AURA_DUMMY
Definition: SpellAuraDefines.h:67
Definition: Player.h:1081
AuraEffectList const & GetAuraEffectsByType(AuraType type) const
Definition: Unit.h:1349
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10616
AuraEffect * GetAuraEffectDummy(uint32 spellid) const
Definition: Unit.cpp:5550
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:1167
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4909
std::list< AuraEffect * > AuraEffectList
Definition: Unit.h:646
Definition: SpellAuraEffects.h:39
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetCaster()
Definition: SpellScript.cpp:401