From 62f76a6c79f7db03a42f341995146996f28dd634 Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Mon, 5 May 2014 21:05:42 -0700 Subject: [PATCH] int to float explicit conversion) --- zone/attack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/attack.cpp b/zone/attack.cpp index 130f6d839..98e3d7300 100644 --- a/zone/attack.cpp +++ b/zone/attack.cpp @@ -269,7 +269,7 @@ bool Mob::CheckHitChance(Mob* other, SkillUseTypes skillinuse, int Hand, int16 c } //subtract off avoidance by the defender. (Live AA - Combat Agility) - bonus = defender->spellbonuses.AvoidMeleeChance + defender->itembonuses.AvoidMeleeChance + (defender->aabonuses.AvoidMeleeChance * 10); + bonus = (float)(defender->spellbonuses.AvoidMeleeChance + defender->itembonuses.AvoidMeleeChance + (defender->aabonuses.AvoidMeleeChance * 10)); //AA Live - Elemental Agility if (IsPet()) { @@ -446,7 +446,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte) && (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) { float bonusShieldBlock = 0.0f; - bonusShieldBlock = aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock; + bonusShieldBlock = (float)(aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock); RollTable[1] += bonusShieldBlock; } @@ -458,7 +458,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte) float bonusStaffBlock = 0.0f; if(TwoHandBlunt == ItemType2HBlunt) { - bonusStaffBlock = aabonuses.TwoHandBluntBlock + spellbonuses.TwoHandBluntBlock + itembonuses.TwoHandBluntBlock; + bonusStaffBlock = (float)(aabonuses.TwoHandBluntBlock + spellbonuses.TwoHandBluntBlock + itembonuses.TwoHandBluntBlock); RollTable[1] += bonusStaffBlock; } }