From 70412e7e254a36398f101b4bfe1926c619063202 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 5 Apr 2016 00:15:56 +0200 Subject: Core/Misc: MSVC warning fixes --- src/server/scripts/Spells/spell_druid.cpp | 2 +- src/server/scripts/Spells/spell_rogue.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index f49f0d6cba6..f1d9b5e5c7c 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -679,7 +679,7 @@ class spell_dru_rip : public SpellScriptLoader if (Unit* caster = GetCaster()) { // 0.01 * $AP * cp - uint8 cp = caster->ToPlayer()->GetComboPoints(); + uint32 cp = caster->ToPlayer()->GetComboPoints(); // Idol of Feral Shadows. Can't be handled as SpellMod due its dependency from CPs if (AuraEffect const* auraEffIdolOfFeralShadows = caster->GetAuraEffect(SPELL_DRUID_IDOL_OF_FERAL_SHADOWS, EFFECT_0)) diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index 80332ba526d..42bb4be71ba 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -661,7 +661,7 @@ class spell_rog_rupture : public SpellScriptLoader 0.0375f // 5 points: ${($m1 + $b1*5 + 0.0375 * $AP) * 8} damage over 16 secs }; - uint8 cp = caster->ToPlayer()->GetComboPoints(); + uint32 cp = caster->ToPlayer()->GetComboPoints(); if (cp > 5) cp = 5; @@ -891,7 +891,7 @@ public: { if (AuraEffect* blade = GetCaster()->GetAuraEffectOfRankedSpell(SPELL_ROGUE_SERRATED_BLADES_R1, EFFECT_0)) { - uint8 combo = GetCaster()->ToPlayer()->GetComboPoints(); + uint32 combo = GetCaster()->ToPlayer()->GetComboPoints(); if (roll_chance_i(blade->GetAmount() * combo)) if (Aura* dot = GetHitUnit()->GetAura(SPELL_ROGUE_RUPTURE, GetCaster()->GetGUID())) -- cgit v1.2.3