486 {
488 if (!target)
489 return;
490
492 float tickCoef = (static_cast<float>(aurEff->GetTickNumber() - 1) / aurEff->GetTotalTicks());
493 int32 damage = bp - (bp*tickCoef);
495 }
std::int32_t int32
Definition: Define.h:103
@ SPELL_DOOMFIRE_DOT
Definition: boss_archimonde.cpp:55
@ EFFECT_1
Definition: SharedDefines.h:32
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1224
std::array< SpellEffectInfo, MAX_SPELL_EFFECTS > Effects
Definition: SpellInfo.h:393
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetTarget() const
Definition: SpellScript.cpp:1165