mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8153] Fixed some implicit float->int cast warnings.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
44e8c3374f
commit
394cf9264d
3 changed files with 5 additions and 4 deletions
|
|
@ -6665,7 +6665,8 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
|
||||||
}
|
}
|
||||||
// Add armor bonus from ArmorDamageModifier if > 0
|
// Add armor bonus from ArmorDamageModifier if > 0
|
||||||
if (proto->ArmorDamageModifier > 0)
|
if (proto->ArmorDamageModifier > 0)
|
||||||
armor+=proto->ArmorDamageModifier;
|
armor += uint32(proto->ArmorDamageModifier);
|
||||||
|
|
||||||
if (armor)
|
if (armor)
|
||||||
HandleStatModifier(UNIT_MOD_ARMOR, BASE_VALUE, float(armor), apply);
|
HandleStatModifier(UNIT_MOD_ARMOR, BASE_VALUE, float(armor), apply);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5408,7 +5408,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
if (dummySpell->SpellFamilyFlags & UI64LIT(0x4000000000000))
|
if (dummySpell->SpellFamilyFlags & UI64LIT(0x4000000000000))
|
||||||
{
|
{
|
||||||
uint32 maxmana = GetMaxPower(POWER_MANA);
|
uint32 maxmana = GetMaxPower(POWER_MANA);
|
||||||
basepoints0 = maxmana* GetAttackTime(RANGED_ATTACK)/1000.0f/100.0f;
|
basepoints0 = int32(maxmana* GetAttackTime(RANGED_ATTACK)/1000.0f/100.0f);
|
||||||
|
|
||||||
target = this;
|
target = this;
|
||||||
triggered_spell_id = 34075;
|
triggered_spell_id = 34075;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8152"
|
#define REVISION_NR "8153"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue