441 {
443 if (!player)
444 return;
445
448 {
451 break;
454 break;
457 break;
460 break;
463 break;
464 }
465
466 if (spellId)
467 {
468 player->
CastSpell(player, spellId,
true);
470 {
471 if (aur->GetBase()->GetStackAmount() >= 5)
472 {
473 switch (spellId)
474 {
477 break;
480 break;
483 break;
486 break;
489 break;
490 }
491
494 for (Unit::AuraEffectList::const_iterator i = dummyAuras.begin(); i != dummyAuras.end(); ++i)
495 {
497 if ((*i)->GetBase()->GetStackAmount() >= 5)
498 ++count;
499 }
500
501
502 if (count >= 5)
504 }
505 }
506 }
507 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_AURA_DUMMY
Definition: SpellAuraDefines.h:67
@ SPELL_FEAST_ON_PIE
Definition: pilgrims_bounty.cpp:73
@ SPELL_PLAYER_TURKEY
Definition: pilgrims_bounty.cpp:77
@ SPELL_WELL_FED_TURKEY
Definition: pilgrims_bounty.cpp:83
@ SPELL_WELL_FED_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:87
@ SPELL_PLAYER_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:81
@ SPELL_WELL_FED_STUFFING
Definition: pilgrims_bounty.cpp:84
@ SPELL_FEAST_ON_TURKEY
Definition: pilgrims_bounty.cpp:71
@ SPELL_PLAYER_CRANBERRY
Definition: pilgrims_bounty.cpp:80
@ SPELL_FEAST_ON_STUFFING
Definition: pilgrims_bounty.cpp:72
@ SPELL_PLAYER_STUFFING
Definition: pilgrims_bounty.cpp:78
@ SPELL_SPIRIT_OF_SHARING
Definition: pilgrims_bounty.cpp:95
@ SPELL_PLAYER_PIE
Definition: pilgrims_bounty.cpp:79
@ SPELL_FEAST_ON_SWEET_POTATOES
Definition: pilgrims_bounty.cpp:75
@ SPELL_WELL_FED_PIE
Definition: pilgrims_bounty.cpp:85
@ SPELL_WELL_FED_CRANBERRY
Definition: pilgrims_bounty.cpp:86
@ SPELL_FEAST_ON_CRANBERRY
Definition: pilgrims_bounty.cpp:74
Definition: Player.h:1064
AuraEffectList const & GetAuraEffectsByType(AuraType type) const
Definition: Unit.h:1362
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10578
AuraEffect * GetAuraEffectDummy(uint32 spellid) const
Definition: Unit.cpp:5521
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
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