mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[12022] Some more warning fixes
This commit is contained in:
parent
f777665d48
commit
a309de2e6d
8 changed files with 25 additions and 34 deletions
|
|
@ -6201,7 +6201,7 @@ void Unit::EnergizeBySpell(Unit *pVictim, uint32 SpellID, uint32 Damage, Powers
|
|||
int32 Unit::SpellBonusWithCoeffs(SpellEntry const *spellProto, int32 total, int32 benefit, int32 ap_benefit, DamageEffectType damagetype, bool donePart, float defCoeffMod)
|
||||
{
|
||||
// Distribute Damage over multiple effects, reduce by AoE
|
||||
float coeff;
|
||||
float coeff = 1.0f;
|
||||
|
||||
// Not apply this to creature casted spells
|
||||
if (GetTypeId()==TYPEID_UNIT && !((Creature*)this)->IsPet())
|
||||
|
|
@ -9200,8 +9200,6 @@ Powers Unit::GetPowerTypeByAuraGroup(UnitMods unitMod) const
|
|||
case UNIT_MOD_RUNIC_POWER:return POWER_RUNIC_POWER;
|
||||
default: return POWER_MANA;
|
||||
}
|
||||
|
||||
return POWER_MANA;
|
||||
}
|
||||
|
||||
float Unit::GetTotalAttackPowerValue(WeaponAttackType attType) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue