aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts
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/bindings/scripts
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/bindings/scripts')
-rw-r--r--src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp
index cc7f100f015..c56d801c135 100644
--- a/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp
+++ b/src/bindings/scripts/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp
@@ -92,13 +92,14 @@ struct TRINITY_DLL_DECL boss_volazjAI : public ScriptedAI
if (uiShadowBoltVolleyTimer < diff)
{
- DoCast(m_creature, HeroicMode ? H_SPELL_SHADOW_BOLT_VOLLEY : SPELL_SHADOW_BOLT_VOLLEY);
+ DoCast(m_creature->getVictim(), HeroicMode ? H_SPELL_SHADOW_BOLT_VOLLEY : SPELL_SHADOW_BOLT_VOLLEY);
uiShadowBoltVolleyTimer = 5000;
} else uiShadowBoltVolleyTimer -= diff;
if (uiShiverTimer < diff)
{
- DoCast(m_creature, HeroicMode ? H_SPELL_SHIVER : SPELL_SHIVER);
+ if (Unit * target = SelectUnit(SELECT_TARGET_RANDOM, 0))
+ DoCast(target, HeroicMode ? H_SPELL_SHIVER : SPELL_SHIVER);
uiShiverTimer = 15000;
} else uiShiverTimer -= diff;