mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7864] Use x.0f float constant format.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
bde5402b40
commit
50898eedde
4 changed files with 13 additions and 13 deletions
|
|
@ -5261,19 +5261,19 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
if( procSpell->SpellFamilyFlags & 0x0000000000000004LL )
|
||||
{
|
||||
triggered_spell_id = 40445;
|
||||
chance = 25.f;
|
||||
chance = 25.0f;
|
||||
}
|
||||
// Rejuvenation
|
||||
else if( procSpell->SpellFamilyFlags & 0x0000000000000010LL )
|
||||
{
|
||||
triggered_spell_id = 40446;
|
||||
chance = 25.f;
|
||||
chance = 25.0f;
|
||||
}
|
||||
// Mangle (cat/bear)
|
||||
else if( procSpell->SpellFamilyFlags & 0x0000044000000000LL )
|
||||
{
|
||||
triggered_spell_id = 40452;
|
||||
chance = 40.f;
|
||||
chance = 40.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
|
@ -5599,13 +5599,13 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
if( procSpell->SpellFamilyFlags & 0x00000000C0000000LL)
|
||||
{
|
||||
triggered_spell_id = 40471;
|
||||
chance = 15.f;
|
||||
chance = 15.0f;
|
||||
}
|
||||
// Judgement
|
||||
else if( procSpell->SpellFamilyFlags & 0x0000000000800000LL )
|
||||
{
|
||||
triggered_spell_id = 40472;
|
||||
chance = 50.f;
|
||||
chance = 50.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
|
@ -5765,17 +5765,17 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
if (procSpell->SpellFamilyFlags & 0x0000000000000001LL)
|
||||
{
|
||||
triggered_spell_id = 40465; // Lightning Bolt
|
||||
chance = 15.f;
|
||||
chance = 15.0f;
|
||||
}
|
||||
else if (procSpell->SpellFamilyFlags & 0x0000000000000080LL)
|
||||
{
|
||||
triggered_spell_id = 40465; // Lesser Healing Wave
|
||||
chance = 10.f;
|
||||
chance = 10.0f;
|
||||
}
|
||||
else if (procSpell->SpellFamilyFlags & 0x0000001000000000LL)
|
||||
{
|
||||
triggered_spell_id = 40466; // Stormstrike
|
||||
chance = 50.f;
|
||||
chance = 50.0f;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
|
|
@ -11247,7 +11247,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue