[7864] Use x.0f float constant format. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
1 parent
5fe179019f
commit
6d6a4a7856
3 files changed
+12
-12
No files matched your search
+9
-9
@@ -5799,19 +5799,19 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
if( procSpell->SpellFamilyFlags[0] & 0x4 )
|
||||
{
|
||||
triggered_spell_id = 40445;
|
||||
chance = 25.f;
|
||||
chance = 25.0f;
|
||||
}
|
||||
// Rejuvenation
|
||||
else if( procSpell->SpellFamilyFlags[0] & 0x10 )
|
||||
{
|
||||
triggered_spell_id = 40446;
|
||||
chance = 25.f;
|
||||
chance = 25.0f;
|
||||
}
|
||||
// Mangle (cat/bear)
|
||||
else if( procSpell->SpellFamilyFlags[1] & 0x00000440)
|
||||
{
|
||||
triggered_spell_id = 40452;
|
||||
chance = 40.f;
|
||||
chance = 40.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
@@ -6178,13 +6178,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
if( procSpell->SpellFamilyFlags[0] & 0xC0000000)
|
||||
{
|
||||
triggered_spell_id = 40471;
|
||||
chance = 15.f;
|
||||
chance = 15.0f;
|
||||
}
|
||||
// Judgement
|
||||
else if( procSpell->SpellFamilyFlags[0] & 0x800000 )
|
||||
{
|
||||
triggered_spell_id = 40472;
|
||||
chance = 50.f;
|
||||
chance = 50.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
@@ -6358,17 +6358,17 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
if (procSpell->SpellFamilyFlags[0] & 0x1)
|
||||
{
|
||||
triggered_spell_id = 40465; // Lightning Bolt
|
||||
chance = 15.f;
|
||||
chance = 15.0f;
|
||||
}
|
||||
else if (procSpell->SpellFamilyFlags[0] & 0x80)
|
||||
{
|
||||
triggered_spell_id = 40465; // Lesser Healing Wave
|
||||
chance = 10.f;
|
||||
chance = 10.0f;
|
||||
}
|
||||
else if (procSpell->SpellFamilyFlags[1] & 0x00000010)
|
||||
{
|
||||
triggered_spell_id = 40466; // Stormstrike
|
||||
chance = 50.f;
|
||||
chance = 50.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
@@ -12637,7 +12637,7 @@ uint32 Unit::GetCastingTimeForBonus( SpellEntry const *spellProto, DamageEffectT
|
||||
if (OriginalCastTime > 7000) OriginalCastTime = 7000;
|
||||
if (OriginalCastTime < 1500) OriginalCastTime = 1500;
|
||||
// Portion to Over Time
|
||||
float PtOT = (overTime / 15000.f) / ((overTime / 15000.f) + (OriginalCastTime / 3500.f));
|
||||
float PtOT = (overTime / 15000.0f) / ((overTime / 15000.0f) + (OriginalCastTime / 3500.0f));
|
||||
|
||||
if ( damagetype == DOT )
|
||||
CastingTime = uint32(CastingTime * PtOT);
|
||||
|
||||
Reference in new issue
Block a user