615 {
616
617
619 return;
620
621 uint8 casterStack = 1;
622 uint8 targetStack = 1;
624 if (casterAura)
627 if (targetAura)
629 uint8 newStack = casterStack + targetStack;
630 if (newStack > 5)
631 newStack = 5;
632 if (casterAura)
634 else
635 {
638 aur->SetStackAmount(newStack);
639 }
640
641
642 if (newStack >= 4)
644
645
646 if (newStack >= 5)
647 {
652 if (rotface->IsAlive())
653 {
657 }
658
664 }
665
669 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_LARGE_OOZE_COMBINE
Definition: boss_rotface.cpp:58
@ SPELL_UNSTABLE_OOZE_EXPLOSION
Definition: boss_rotface.cpp:65
@ SPELL_UNSTABLE_OOZE
Definition: boss_rotface.cpp:63
@ SPELL_LARGE_OOZE_BUFF_COMBINE
Definition: boss_rotface.cpp:59
@ SAY_UNSTABLE_EXPLOSION
Definition: boss_rotface.cpp:33
@ EMOTE_UNSTABLE_EXPLOSION
Definition: boss_rotface.cpp:32
@ EVENT_STICKY_OOZE
Definition: boss_rotface.cpp:88
@ DATA_OOZE_DANCE_ACHIEVEMENT
Definition: icecrown_citadel.h:106
@ DATA_ROTFACE
Definition: icecrown_citadel.h:91
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition: CreatureAI.cpp:50
Definition: Creature.h:43
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2178
CreatureAI * AI() const
Definition: Creature.h:140
Creature * ToCreature()
Definition: Object.h:205
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5581
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
Definition: InstanceScript.h:142
Definition: SpellAuras.h:87
void SetStackAmount(uint8 num)
Definition: SpellAuras.cpp:995
uint8 GetStackAmount() const
Definition: SpellAuras.h:148
Creature * GetHitCreature()
Definition: SpellScript.cpp:458
Unit * GetCaster()
Definition: SpellScript.cpp:401