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