◆ HandleDamage()
| void spell_warr_bloodthirst::HandleDamage |
( |
SpellEffIndex |
effIndex | ) |
|
|
inlineprivate |
464 {
467
469 {
472 }
474 }
std::int32_t int32
Definition Define.h:103
std::uint32_t uint32
Definition Define.h:107
@ BASE_ATTACK
Definition Unit.h:215
@ SPELL_DIRECT_DAMAGE
Definition Unit.h:255
T ApplyPct(T &base, U pct)
Definition Util.h:64
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
int32 GetEffectValue() const
Definition SpellScript.cpp:600
Unit * GetHitUnit()
Definition SpellScript.cpp:448
void SetHitDamage(int32 damage)
Definition SpellScript.cpp:524
Unit * GetCaster()
Definition SpellScript.cpp:401
uint32 SpellDamageBonusDone(Unit *victim, SpellInfo const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint8 effIndex, float TotalMod=0.0f, uint32 stack=1)
Definition Unit.cpp:8701
References ApplyPct(), BASE_ATTACK, SpellScript::GetCaster(), SpellScript::GetEffectValue(), SpellScript::GetHitUnit(), SpellScript::GetSpellInfo(), SpellScript::SetHitDamage(), SPELL_DIRECT_DAMAGE, and Unit::SpellDamageBonusDone().
Referenced by Register().
◆ HandleDummy()
477 {
480 }
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1407
@ SPELL_WARRIOR_BLOODTHIRST
Definition spell_warrior.cpp:35
References Unit::CastCustomSpell(), SpellScript::GetCaster(), SpellScript::GetEffectValue(), and SPELL_WARRIOR_BLOODTHIRST.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
| void spell_warr_bloodthirst::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
Implements _SpellScript.
483 {
486 }
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_DUMMY
Definition SharedDefines.h:769
@ SPELL_EFFECT_SCHOOL_DAMAGE
Definition SharedDefines.h:768
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
HookList< EffectHandler > OnEffectHit
Definition SpellScript.h:335
HookList< EffectHandler > OnEffectHitTarget
Definition SpellScript.h:336
void HandleDummy(SpellEffIndex)
Definition spell_warrior.cpp:476
void HandleDamage(SpellEffIndex effIndex)
Definition spell_warrior.cpp:463
References EFFECT_0, EFFECT_1, HandleDamage(), HandleDummy(), SpellScript::OnEffectHit, SpellScript::OnEffectHitTarget, SPELL_EFFECT_DUMMY, SPELL_EFFECT_SCHOOL_DAMAGE, and SpellEffectFn.
◆ Validate()
| bool spell_warr_bloodthirst::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: