aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-04-05 00:15:56 +0200
committerShauren <shauren.trinity@gmail.com>2016-04-05 00:15:56 +0200
commit70412e7e254a36398f101b4bfe1926c619063202 (patch)
tree1a49d68aeaae5ca2869c37014a5d688ee37fda74 /src/server/scripts/Spells
parente3acb2ecc76910155878116a92795480df7f8d73 (diff)
Core/Misc: MSVC warning fixes
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp2
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp4
2 files changed, 3 insertions, 3 deletions
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()))