332 {
333 if (
Aura* a = aurEff->GetBase())
334 if (a->GetDuration() > a->GetMaxDuration() - 1000)
335 return;
337 uint8 inoculatedStack = 1;
339 {
340 inoculatedStack += a->GetStackAmount();
341 if (a->GetDuration() > a->GetMaxDuration() - 10000)
342 return;
343 }
348 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
#define DATA_INOCULATED_STACK
Definition: boss_festergut.cpp:67
@ SPELL_INOCULATED
Definition: boss_festergut.cpp:51
@ DATA_FESTERGUT
Definition: icecrown_citadel.h:90
#define sSpellMgr
Definition: SpellMgr.h:825
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
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
Definition: InstanceScript.h:142
Definition: SpellAuras.h:87
Aura * GetAura() const
Definition: SpellScript.cpp:1045
Unit * GetTarget() const
Definition: SpellScript.cpp:1165