◆ HandleDamage()
| void spell_thaddius_pos_neg_charge::HandleDamage |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
◆ HandleTargets()
| void spell_thaddius_pos_neg_charge::HandleTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
574 {
576 for (auto& ihit : targets)
577 {
578 if (ihit->GetGUID() !=
GetCaster()->GetGUID())
579 {
581 {
583 {
584 ++count;
585 }
586 }
587 }
588 }
589
590 if (count)
591 {
594 }
595 }
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:202
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:18933
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.
617 {
620 }
@ 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:597
void HandleTargets(std::list< WorldObject * > &targets)
Definition boss_thaddius.cpp:573
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: