forked from TrinityCore/TrinityCore
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Binary Resistance: Code Style. Update Type * var is changed to …
…Type* var
- Loading branch information
Retriman
committed
Jan 31, 2012
1 parent
23ad608
commit 03704e2
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1436,7 +1436,7 @@ class Unit : public WorldObject | |
void DealMeleeDamage(CalcDamageInfo* damageInfo, bool durabilityLoss); | ||
void HandleProcExtraAttackFor(Unit* victim); | ||
|
||
void CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 damage, SpellInfo const *spellInfo, WeaponAttackType attackType = BASE_ATTACK, bool crit = false, int32 calc_resist = -1); | ||
void CalculateSpellDamageTaken(SpellNonMeleeDamage* damageInfo, int32 damage, SpellInfo const* spellInfo, WeaponAttackType attackType = BASE_ATTACK, bool crit = false, int32 calc_resist = -1); | ||
void DealSpellDamage(SpellNonMeleeDamage* damageInfo, bool durabilityLoss); | ||
|
||
// player or player's pet resilience (-1%) | ||
|
@@ -1459,15 +1459,15 @@ class Unit : public WorldObject | |
float MeleeSpellMissChance(const Unit* pVictim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const; | ||
SpellMissInfo MeleeSpellHitResult(Unit* pVictim, SpellInfo const* spell); | ||
SpellMissInfo MagicSpellHitResult(Unit* pVictim, SpellInfo const* spell); | ||
SpellMissInfo SpellHitResult(Unit* pVictim, SpellInfo const* spell, bool canReflect = false); | ||
uint32 CalcMagicSpellHitChance(Unit * pVictim, SpellSchoolMask schoolMask, SpellInfo const * spellProto); | ||
SpellMissInfo SpellHitResult(Unit* victim, SpellInfo const* spell, bool canReflect = false); | ||
uint32 CalcMagicSpellHitChance(Unit* victim, SpellSchoolMask schoolMask, SpellInfo const* spellProto); | ||
|
||
float GetUnitDodgeChance() const; | ||
float GetUnitParryChance() const; | ||
float GetUnitBlockChance() const; | ||
float GetUnitMissChance(WeaponAttackType attType) const; | ||
float GetUnitCriticalChance(WeaponAttackType attackType, const Unit* pVictim) const; | ||
int32 GetMechanicResistChance(const SpellInfo *spell) const; | ||
int32 GetMechanicResistChance(const SpellInfo* spell) const; | ||
bool CanUseAttackType(uint8 attacktype) const | ||
{ | ||
switch (attacktype) | ||
|
@@ -2022,8 +2022,8 @@ class Unit : public WorldObject | |
// redefined in Creature | ||
static bool IsDamageReducedByArmor(SpellSchoolMask damageSchoolMask, SpellInfo const* spellInfo = NULL, uint8 effIndex = MAX_SPELL_EFFECTS); | ||
uint32 CalcArmorReducedDamage(Unit* pVictim, const uint32 damage, SpellInfo const* spellInfo, WeaponAttackType attackType=MAX_ATTACK); | ||
void CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEffectType damagetype, const uint32 damage, uint32 *absorb, uint32 *resist, SpellInfo const *spellInfo = NULL, int32 calc_resist = -1); | ||
uint32 CalcSpellResistance(Unit * pVictim, SpellSchoolMask schoolMask, bool binary, SpellInfo const * spellProto) const; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
void CalcAbsorbResist(Unit* pVictim, SpellSchoolMask schoolMask, DamageEffectType damagetype, const uint32 damage, uint32* absorb, uint32* resist, SpellInfo const* spellInfo = NULL, int32 calc_resist = -1); | ||
uint32 CalcSpellResistance(Unit* pVictim, SpellSchoolMask schoolMask, bool binary, SpellInfo const* spellProto) const; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Retriman
Collaborator
|
||
void CalcHealAbsorb(Unit* pVictim, const SpellInfo* spellProto, uint32 &healAmount, uint32 &absorb); | ||
|
||
void UpdateSpeed(UnitMoveType mtype, bool forced); | ||
|
spellInfo