3381 {
3384 aura->RefreshDuration();
3385 else
3386 {
3388 if (!aura || aura->GetStackAmount() < 5 || !
roll_chance_i(50))
3390 else
3391 {
3392 aura->Remove();
3394 }
3395 }
3396 }
bool roll_chance_i(int chance)
Definition: Random.h:59
@ SPELL_PYGMY_OIL_SMALLER_AURA
Definition: spell_item.cpp:3368
@ SPELL_PYGMY_OIL_PYGMY_AURA
Definition: spell_item.cpp:3367
Aura * GetAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5552
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: SpellAuras.h:87
Unit * GetCaster()
Definition: SpellScript.cpp:401