|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Unit.h>
Public Member Functions | |
| void | AbsorbDamage (uint32 amount) |
| void | BlockDamage (uint32 amount) |
| DamageInfo (CalcDamageInfo &dmgInfo) | |
| DamageInfo (Unit *_attacker, Unit *_victim, uint32 _damage, SpellInfo const *_spellInfo, SpellSchoolMask _schoolMask, DamageEffectType _damageType) | |
| uint32 | GetAbsorb () const |
| Unit * | GetAttacker () const |
| WeaponAttackType | GetAttackType () const |
| uint32 | GetBlock () const |
| uint32 | GetDamage () const |
| DamageEffectType | GetDamageType () const |
| uint32 | GetResist () const |
| SpellSchoolMask | GetSchoolMask () const |
| SpellInfo const * | GetSpellInfo () const |
| Unit * | GetVictim () const |
| void | ModifyDamage (int32 amount) |
| void | ResistDamage (uint32 amount) |
Private Attributes | |
| uint32 | m_absorb |
| Unit *const | m_attacker |
| WeaponAttackType | m_attackType |
| uint32 | m_block |
| uint32 | m_damage |
| DamageEffectType const | m_damageType |
| uint32 | m_resist |
| SpellSchoolMask const | m_schoolMask |
| SpellInfo const *const | m_spellInfo |
| Unit *const | m_victim |
|
explicit |
Definition at line 82 of file Unit.cpp.
References m_absorb, m_attacker, m_attackType, m_block, m_damage, m_damageType, m_resist, m_schoolMask, m_spellInfo, and m_victim.
|
explicit |
Definition at line 90 of file Unit.cpp.
References DIRECT_DAMAGE, m_absorb, m_attacker, m_attackType, m_block, m_damage, m_damageType, m_resist, m_schoolMask, m_spellInfo, and m_victim.
| void DamageInfo::AbsorbDamage | ( | uint32 | amount | ) |
Definition at line 105 of file Unit.cpp.
References GetDamage(), m_absorb, and m_damage.
Referenced by Unit::CalcAbsorbResist(), and spell_valanar_kinetic_bomb_absorb::spell_valanar_kinetic_bomb_absorb_AuraScript::OnAbsorb().
| void DamageInfo::BlockDamage | ( | uint32 | amount | ) |
Definition at line 119 of file Unit.cpp.
References GetDamage(), m_block, and m_damage.
|
inline |
|
inline |
Definition at line 899 of file Unit.h.
References m_attacker.
Referenced by spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::OnAbsorb(), spell_pri_power_word_shield::spell_pri_power_word_shield_AuraScript::ReflectDamage(), and spell_boss_lady_malande_shield::spell_boss_lady_malande_shield_AuraScript::Trigger().
|
inline |
Definition at line 919 of file Unit.h.
References m_attackType.
Referenced by Aura::CalcProcChance(), Aura::IsProcTriggeredOnEvent(), and spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc().
|
inline |
|
inline |
Definition at line 923 of file Unit.h.
References m_damage.
Referenced by spell_dk_anti_magic_shell_raid::spell_dk_anti_magic_shell_raid_AuraScript::Absorb(), spell_dk_anti_magic_shell_self::spell_dk_anti_magic_shell_self_AuraScript::Absorb(), spell_dk_anti_magic_zone::spell_dk_anti_magic_zone_AuraScript::Absorb(), spell_monk_dampen_harm::spell_monk_dampen_harm_AuraScript::Absorb(), spell_rog_cheat_death::spell_rog_cheat_death_AuraScript::Absorb(), AbsorbDamage(), BlockDamage(), Unit::CalcAbsorbResist(), spell_sha_nature_guardian::spell_sha_nature_guardian_AuraScript::CheckProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::CheckProc(), spell_pal_eye_for_an_eye::spell_pal_eye_for_an_eye_AuraScript::HandleEffectProc(), spell_pri_vampiric_embrace::spell_pri_vampiric_embrace_AuraScript::HandleEffectProc(), spell_sha_telluric_currents::spell_sha_telluric_currents_AuraScript::HandleEffectProc(), spell_ex_absorb_aura::spell_ex_absorb_auraAuraScript::HandleOnEffectAbsorb(), spell_devourer_of_souls_mirrored_soul_proc::spell_devourer_of_souls_mirrored_soul_proc_AuraScript::HandleProc(), spell_dk_blood_gorged::spell_dk_blood_gorged_AuraScript::HandleProc(), spell_dk_death_strike_enabler::spell_dk_death_strike_enabler_AuraScript::HandleProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::HandleProc(), spell_item_necrotic_touch::spell_item_necrotic_touch_AuraScript::HandleProc(), spell_mage_ignite::spell_mage_ignite_AuraScript::HandleProc(), spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::HandleProc(), spell_the_lich_king_dark_hunger::spell_the_lich_king_dark_hunger_AuraScript::HandleProc(), spell_yogg_saron_grim_reprisal::spell_yogg_saron_grim_reprisal_AuraScript::HandleProc(), ModifyDamage(), spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::OnAbsorb(), spell_valanar_kinetic_bomb_absorb::spell_valanar_kinetic_bomb_absorb_AuraScript::OnAbsorb(), spell_yogg_saron_hodirs_protective_gaze::spell_yogg_saron_hodirs_protective_gaze_AuraScript::OnAbsorb(), spell_blood_queen_essence_of_the_blood_queen::spell_blood_queen_essence_of_the_blood_queen_AuraScript::OnProc(), spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc(), spell_warl_fel_synergy::spell_warl_fel_synergy_AuraScript::OnProc(), and ResistDamage().
|
inline |
Definition at line 915 of file Unit.h.
References m_damageType.
|
inline |
|
inline |
Definition at line 911 of file Unit.h.
References m_schoolMask.
|
inline |
Definition at line 907 of file Unit.h.
References m_spellInfo.
Referenced by spell_valkyr_essences::spell_valkyr_essences_AuraScript::Absorb(), spell_gen_adaptive_warding::spell_gen_adaptive_warding_AuraScript::CheckProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::CheckProc(), spell_gen_obsidian_armor::spell_gen_obsidian_armor_AuraScript::CheckProc(), spell_uk_second_wind_proc::spell_uk_second_wind_proc_AuraScript::CheckProc(), spell_warr_second_wind_proc::spell_warr_second_wind_proc_AuraScript::CheckProc(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectBearProc(), spell_dru_stampede::spell_dru_stampede_AuraScript::HandleEffectCatProc(), spell_pri_evangelism::spell_pri_evangelism_AuraScript::HandleEffectStackProc(), spell_gen_alchemist_stone::spell_gen_alchemist_stone_AuraScript::HandleProc(), spell_pal_beacon_of_light::spell_pal_beacon_of_light_AuraScript::HandleProc(), spell_rog_blade_flurry::spell_rog_blade_flurry_AuraScript::HandleProc(), and spell_monk_serpents_zeal::spell_monk_serpents_zeal_AuraScript::OnProc().
|
inline |
Definition at line 903 of file Unit.h.
References m_victim.
Referenced by spell_monk_tiger_strikes::spell_monk_tiger_strikes_AuraScript::HandleProc(), and spell_monk_touch_of_karma::spell_monk_touch_of_karma_AuraScript::OnAbsorb().
| void DamageInfo::ModifyDamage | ( | int32 | amount | ) |
Definition at line 99 of file Unit.cpp.
References GetDamage(), and m_damage.
| void DamageInfo::ResistDamage | ( | uint32 | amount | ) |
Definition at line 112 of file Unit.cpp.
References GetDamage(), m_damage, and m_resist.
Referenced by Unit::CalcAbsorbResist().
|
private |
Definition at line 887 of file Unit.h.
Referenced by AbsorbDamage(), DamageInfo(), DamageInfo(), and GetAbsorb().
|
private |
Definition at line 880 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetAttacker().
|
private |
Definition at line 886 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetAttackType().
|
private |
Definition at line 889 of file Unit.h.
Referenced by BlockDamage(), DamageInfo(), DamageInfo(), and GetBlock().
|
private |
Definition at line 882 of file Unit.h.
Referenced by AbsorbDamage(), BlockDamage(), DamageInfo(), DamageInfo(), GetDamage(), ModifyDamage(), and ResistDamage().
|
private |
Definition at line 885 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetDamageType().
|
private |
Definition at line 888 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), GetResist(), and ResistDamage().
|
private |
Definition at line 884 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetSchoolMask().
|
private |
Definition at line 883 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetSpellInfo().
|
private |
Definition at line 881 of file Unit.h.
Referenced by DamageInfo(), DamageInfo(), and GetVictim().