mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
int to float explicit conversion)
This commit is contained in:
+3
-3
@@ -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)
|
//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
|
//AA Live - Elemental Agility
|
||||||
if (IsPet()) {
|
if (IsPet()) {
|
||||||
@@ -446,7 +446,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte)
|
|||||||
&& (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
&& (other->InFrontMob(this, other->GetX(), other->GetY()) || bShieldBlockFromRear)) {
|
||||||
|
|
||||||
float bonusShieldBlock = 0.0f;
|
float bonusShieldBlock = 0.0f;
|
||||||
bonusShieldBlock = aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock;
|
bonusShieldBlock = (float)(aabonuses.ShieldBlock + spellbonuses.ShieldBlock + itembonuses.ShieldBlock);
|
||||||
RollTable[1] += bonusShieldBlock;
|
RollTable[1] += bonusShieldBlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -458,7 +458,7 @@ bool Mob::AvoidDamage(Mob* other, int32 &damage, bool CanRiposte)
|
|||||||
float bonusStaffBlock = 0.0f;
|
float bonusStaffBlock = 0.0f;
|
||||||
if(TwoHandBlunt == ItemType2HBlunt) {
|
if(TwoHandBlunt == ItemType2HBlunt) {
|
||||||
|
|
||||||
bonusStaffBlock = aabonuses.TwoHandBluntBlock + spellbonuses.TwoHandBluntBlock + itembonuses.TwoHandBluntBlock;
|
bonusStaffBlock = (float)(aabonuses.TwoHandBluntBlock + spellbonuses.TwoHandBluntBlock + itembonuses.TwoHandBluntBlock);
|
||||||
RollTable[1] += bonusStaffBlock;
|
RollTable[1] += bonusStaffBlock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user