◆ HandleDamage()
void spell_thaddius_pos_neg_charge::HandleDamage |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
◆ HandleTargets()
void spell_thaddius_pos_neg_charge::HandleTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
576 {
578 for (auto& ihit : targets)
579 {
580 if (ihit->GetGUID() !=
GetCaster()->GetGUID())
581 {
583 {
585 {
586 ++count;
587 }
588 }
589 }
590 }
591
592 if (count)
593 {
596 }
597 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
@ SPELL_POSITIVE_CHARGE
Definition boss_thaddius.cpp:80
@ SPELL_POSITIVE_CHARGE_STACK
Definition boss_thaddius.cpp:81
@ SPELL_NEGATIVE_CHARGE_STACK
Definition boss_thaddius.cpp:83
Player * ToPlayer()
Definition Object.h:201
uint32 Id
Definition SpellInfo.h:320
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
void SetAuraStack(uint32 spellId, Unit *target, uint32 stack)
Definition Unit.cpp:18954
References SpellScript::GetCaster(), Object::GetGUID(), SpellScript::GetSpellInfo(), SpellScript::GetTriggeringSpell(), SpellInfo::Id, Unit::SetAuraStack(), SPELL_NEGATIVE_CHARGE_STACK, SPELL_POSITIVE_CHARGE, SPELL_POSITIVE_CHARGE_STACK, and Object::ToPlayer().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_thaddius_pos_neg_charge::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
619 {
622 }
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_SCHOOL_DAMAGE
Definition SharedDefines.h:780
@ TARGET_UNIT_SRC_AREA_ALLY
Definition SharedDefines.h:1434
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition SpellScript.h:354
HookList< EffectHandler > OnEffectHitTarget
Definition SpellScript.h:336
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition SpellScript.h:353
void HandleDamage(SpellEffIndex)
Definition boss_thaddius.cpp:599
void HandleTargets(std::list< WorldObject * > &targets)
Definition boss_thaddius.cpp:575
References EFFECT_0, HandleDamage(), HandleTargets(), SpellScript::OnEffectHitTarget, SpellScript::OnObjectAreaTargetSelect, SPELL_EFFECT_SCHOOL_DAMAGE, SpellEffectFn, SpellObjectAreaTargetSelectFn, and TARGET_UNIT_SRC_AREA_ALLY.
◆ Validate()
bool spell_thaddius_pos_neg_charge::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: