aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-21 12:31:36 -0700
committermaximius <none@none>2009-09-21 12:31:36 -0700
commit9e5c8db01f792231ecff7e3f60a31ebfea733ff1 (patch)
tree51a91be79cd07dc18955264bcc3d5944f5b21cad /src/game/SpellAuras.cpp
parentf093c18ca105418ff921343c45cc9ac0c77ff455 (diff)
*[8508] Not assign boolean value to integer variable, expecting to always be 0. Also renaming member variables. Author: NoFantasy
*[8516] Implement spell 53271. Author: Shendor *[8519] Use RuneType enum where appropriate and more explicit data for rune init. Author: VladimirMangos Thanks to: Stryker *[8520] Limit telent 49182 and ranks triggering expected:wq runes cooldown case. Author: Shendor *Fix Herald Volazj wrongly targeting himself on Shadow Bolt Volley instead of randomly targeting on Shiver, by tlexii. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 34a3ea2347d..f6871b00072 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -6709,14 +6709,14 @@ void AuraEffect::HandleAuraConvertRune(bool apply, bool Real, bool changeAmount)
continue;
if(!plr->GetRuneCooldown(i))
{
- plr->ConvertRune(i, GetSpellProto()->EffectMiscValueB[m_effIndex]);
+ plr->ConvertRune(i, RuneType(GetSpellProto()->EffectMiscValueB[m_effIndex]));
runes |= 1<<i;
--m_amount;
}
}
else
{
- if(plr->GetCurrentRune(i) == GetSpellProto()->EffectMiscValueB[m_effIndex])
+ if(plr->GetCurrentRune(i) == RuneType(GetSpellProto()->EffectMiscValueB[m_effIndex]))
{
if (m_amount & (1<<i))
plr->ConvertRune(i, plr->GetBaseRune(i));