diff options
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c674549380d..12b588e53a7 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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); |
