◆ HandleDamage()
| void spell_thaddius_pos_neg_charge::HandleDamage |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
◆ HandleTargets()
| void spell_thaddius_pos_neg_charge::HandleTargets |
( |
std::list< WorldObject * > & |
targets | ) |
|
|
inlineprivate |
586 {
588 for (auto& ihit : targets)
589 {
590 if (ihit->GetGUID() !=
GetCaster()->GetGUID())
591 {
593 {
595 {
596 ++count;
597 }
598 }
599 }
600 }
601
602 if (count)
603 {
606 }
607 }
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:344
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetCaster()
Definition SpellScript.cpp:401
void SetAuraStack(uint32 spellId, Unit *target, uint32 stack)
Definition Unit.cpp:15127
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.
629 {
632 }
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_SCHOOL_DAMAGE
Definition SharedDefines.h:768
@ TARGET_UNIT_SRC_AREA_ALLY
Definition SharedDefines.h:1440
#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:609
void HandleTargets(std::list< WorldObject * > &targets)
Definition boss_thaddius.cpp:585
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: