3382 {
3385 aura->RefreshDuration();
3386 else
3387 {
3389 if (!aura || aura->GetStackAmount() < 5 || !
roll_chance_i(50))
3391 else
3392 {
3393 aura->Remove();
3395 }
3396 }
3397 }
bool roll_chance_i(int chance)
Definition: Random.h:59
@ SPELL_PYGMY_OIL_SMALLER_AURA
Definition: spell_item.cpp:3369
@ SPELL_PYGMY_OIL_PYGMY_AURA
Definition: spell_item.cpp:3368
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
Definition: SpellAuras.h:87
Unit * GetCaster()
Definition: SpellScript.cpp:401