◆ HandleDamage()
| void spell_thaddius_pos_neg_charge::HandleDamage |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
◆ HandleTargets()
| void spell_thaddius_pos_neg_charge::HandleTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
585 {
587 for (auto& ihit : targets)
588 {
589 if (ihit->GetGUID() !=
GetCaster()->GetGUID())
590 {
592 {
594 {
595 ++count;
596 }
597 }
598 }
599 }
600
601 if (count)
602 {
605 }
606 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
@ SPELL_POSITIVE_CHARGE
Definition boss_thaddius.cpp:77
@ SPELL_POSITIVE_CHARGE_STACK
Definition boss_thaddius.cpp:78
@ SPELL_NEGATIVE_CHARGE_STACK
Definition boss_thaddius.cpp:80
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:19164
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.
628 {
631 }
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_SCHOOL_DAMAGE
Definition SharedDefines.h:791
@ TARGET_UNIT_SRC_AREA_ALLY
Definition SharedDefines.h:1445
#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:608
void HandleTargets(std::list< WorldObject * > &targets)
Definition boss_thaddius.cpp:584
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: