190 {
193 if (
Map* map = caster->FindMap())
194 if (
Aura* a = aurEff->GetBase())
195 {
198 uint32 dmgPerTick = a->GetSpellInfo()->Effects[0].BasePoints;
201 if (
Player* p = itr->GetSource())
202 if (p->IsAlive())
203 ++count;
204 ticks = (a->GetDuration() /
int32(a->GetSpellInfo()->Effects[0].Amplitude)) + 1;
205 int32 dmg = (ticks * dmgPerTick) / count;
207 }
208 }
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
@ AURA_REMOVE_BY_ENEMY_SPELL
Definition: SpellAuraDefines.h:394
@ SPELL_SHARED_SUFFERING_DAMAGE
Definition: boss_marwyn.cpp:177
Definition: LinkedList.h:139
Definition: Player.h:1064
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
Definition: SpellAuras.h:87
AuraApplication const * GetTargetApplication() const
Definition: SpellScript.cpp:1194
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
Unit * GetTarget() const
Definition: SpellScript.cpp:1165