AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Unit.h"
Public Member Functions | |
DamageInfo (Unit *_attacker, Unit *_victim, uint32 _damage, SpellInfo const *_spellInfo, SpellSchoolMask _schoolMask, DamageEffectType _damageType, uint32 cleanDamage=0) | |
DamageInfo (CalcDamageInfo const &dmgInfo) | |
DamageInfo (CalcDamageInfo const &dmgInfo, uint8 damageIndex) | |
DamageInfo (SpellNonMeleeDamage const &spellNonMeleeDamage, DamageEffectType damageType) | |
void | ModifyDamage (int32 amount) |
void | AbsorbDamage (uint32 amount) |
void | ResistDamage (uint32 amount) |
void | BlockDamage (uint32 amount) |
Unit * | GetAttacker () const |
Unit * | GetVictim () const |
SpellInfo const * | GetSpellInfo () const |
SpellSchoolMask | GetSchoolMask () const |
DamageEffectType | GetDamageType () const |
WeaponAttackType | GetAttackType () const |
uint32 | GetDamage () const |
uint32 | GetAbsorb () const |
uint32 | GetResist () const |
uint32 | GetBlock () const |
uint32 | GetUnmitigatedDamage () const |
Private Member Functions | |
DamageInfo (DamageInfo const &dmg1, DamageInfo const &dmg2) | |
Private Attributes | |
Unit *const | m_attacker |
Unit *const | m_victim |
uint32 | m_damage |
SpellInfo const *const | m_spellInfo |
SpellSchoolMask const | m_schoolMask |
DamageEffectType const | m_damageType |
WeaponAttackType | m_attackType |
uint32 | m_absorb |
uint32 | m_resist |
uint32 | m_block |
uint32 | m_cleanDamage |
|
private |
|
explicit |
|
explicit |
DamageInfo::DamageInfo | ( | CalcDamageInfo const & | dmgInfo, |
uint8 | damageIndex | ||
) |
DamageInfo::DamageInfo | ( | SpellNonMeleeDamage const & | spellNonMeleeDamage, |
DamageEffectType | damageType | ||
) |
void DamageInfo::AbsorbDamage | ( | uint32 | amount | ) |
References GetDamage(), m_absorb, and m_damage.
Referenced by spell_mage_fire_frost_ward::Absorb(), Unit::CalcAbsorbResist(), and spell_valanar_kinetic_bomb_absorb_aura::OnAbsorb().
void DamageInfo::BlockDamage | ( | uint32 | amount | ) |
|
inline |
References m_absorb.
Referenced by Unit::AttackerStateUpdate(), Unit::CalcAbsorbResist(), Unit::CalculateSpellDamageTaken(), Unit::DealDamage(), Unit::DealMeleeDamage(), Spell::EffectEnvironmentalDMG(), Player::EnvironmentalDamage(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
inline |
|
inline |
References m_attackType.
Referenced by Aura::CalcProcChance(), and spell_dk_dancing_rune_weapon::HandleProc().
|
inline |
|
inline |
References m_damage.
Referenced by spell_shield_generator_aura::Absorb(), spell_yogg_saron_protective_gaze_aura::Absorb(), spell_charge_shield_bomber_aura::Absorb(), spell_black_temple_spell_absorption_aura::Absorb(), spell_dk_anti_magic_shell_raid::Absorb(), spell_dk_anti_magic_shell_self::Absorb(), spell_dk_anti_magic_zone::Absorb(), spell_dk_spell_deflection::Absorb(), spell_dk_will_of_the_necropolis::Absorb(), spell_dru_moonkin_form_passive::Absorb(), spell_dru_primal_tenacity::Absorb(), spell_pri_guardian_spirit::Absorb(), spell_rog_cheat_death::Absorb(), spell_rog_nerves_of_steel::Absorb(), spell_sha_astral_shift::Absorb(), spell_mage_fire_frost_ward::Absorb(), spell_pal_ardent_defender::Absorb(), AbsorbDamage(), Unit::AttackerStateUpdate(), BlockDamage(), Unit::CalcAbsorbResist(), Unit::CalculateSpellDamageTaken(), spell_deathbringer_blood_link_aura::CheckProc(), spell_deathbringer_blood_link_blood_beast_aura::CheckProc(), spell_dk_improved_blood_presence_proc::CheckProc(), spell_dk_scent_of_blood_trigger::CheckProc(), spell_item_shadowmourne::CheckProc(), spell_pal_sacred_shield_base::CheckProc(), spell_pal_seal_of_righteousness::CheckProc(), spell_warl_siphon_life::CheckProc(), spell_warl_fel_synergy::CheckProc(), Unit::DealDamage(), Unit::DealMeleeDamage(), Spell::EffectEnvironmentalDMG(), Player::EnvironmentalDamage(), AuraEffect::HandlePeriodicDamageAurasTick(), AuraEffect::HandlePeriodicHealthLeechAuraTick(), spell_reliquary_of_souls_aura_of_desire_aura::HandleProc(), spell_black_temple_consuming_strikes_aura::HandleProc(), spell_item_blood_draining_enchant::HandleProc(), spell_mage_ignite::HandleProc(), spell_the_lich_king_dark_hunger_aura::HandleProc(), spell_oculus_temporal_rift_aura::HandleProc(), spell_yogg_saron_grim_reprisal_aura::HandleProc(), spell_dk_wandering_plague_aura::HandleProc(), spell_dk_blood_gorged::HandleProc(), spell_dru_t10_balance_4p_bonus::HandleProc(), spell_item_necrotic_touch::HandleProc(), spell_sha_t8_electrified::HandleProc(), spell_warl_seed_of_corruption_aura::HandleProc(), spell_warl_seed_of_corruption_generic_aura::HandleProc(), spell_dk_hungering_cold::HandleProc(), ModifyDamage(), spell_valanar_kinetic_bomb_absorb_aura::OnAbsorb(), spell_blood_queen_essence_of_the_blood_queen_aura::OnProc(), spell_pal_eye_for_an_eye::OnProc(), spell_warl_siphon_life::OnProc(), spell_warl_fel_synergy::OnProc(), and ResistDamage().
|
inline |
References m_damageType.
Referenced by spell_dk_spell_deflection::Absorb(), and Unit::CalcAbsorbResist().
|
inline |
References m_resist.
Referenced by Unit::AttackerStateUpdate(), Unit::CalcAbsorbResist(), Unit::CalculateSpellDamageTaken(), Unit::DealDamage(), Spell::EffectEnvironmentalDMG(), Player::EnvironmentalDamage(), AuraEffect::HandlePeriodicDamageAurasTick(), and AuraEffect::HandlePeriodicHealthLeechAuraTick().
|
inline |
|
inline |
uint32 DamageInfo::GetUnmitigatedDamage | ( | ) | const |
References m_absorb, m_cleanDamage, m_damage, and m_resist.
Referenced by spell_rog_blade_flurry::HandleProc().
|
inline |
void DamageInfo::ModifyDamage | ( | int32 | amount | ) |
References GetDamage(), and m_damage.
Referenced by AuraEffect::HandlePeriodicHealthLeechAuraTick().
void DamageInfo::ResistDamage | ( | uint32 | amount | ) |
References GetDamage(), m_damage, and m_resist.
Referenced by Unit::CalcAbsorbResist().
|
private |
Referenced by AbsorbDamage(), DamageInfo(), GetAbsorb(), and GetUnmitigatedDamage().
|
private |
Referenced by GetAttacker().
|
private |
Referenced by GetAttackType().
|
private |
Referenced by BlockDamage(), DamageInfo(), and GetBlock().
|
private |
Referenced by GetUnmitigatedDamage().
|
private |
Referenced by AbsorbDamage(), BlockDamage(), GetDamage(), GetUnmitigatedDamage(), ModifyDamage(), and ResistDamage().
|
private |
Referenced by GetDamageType().
|
private |
Referenced by DamageInfo(), GetResist(), GetUnmitigatedDamage(), and ResistDamage().
|
private |
Referenced by GetSchoolMask().
|
private |
Referenced by GetSpellInfo().
|
private |
Referenced by GetVictim().