[10615] Add script effect of spell 66741

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-10-17 12:36:48 +02:00
parent a3c03eb919
commit 608815855f
2 changed files with 27 additions and 1 deletions

View file

@ -6229,6 +6229,32 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, 66622, true); unitTarget->CastSpell(unitTarget, 66622, true);
break; break;
} }
case 66741: // Chum the Water
{
// maybe this check should be done sooner?
if (!m_caster->IsInWater())
return;
uint32 spellId = 0;
// too low/high?
if (roll_chance_i(33))
spellId = 66737; // angry
else
{
switch(rand() % 3)
{
case 0: spellId = 66740; break; // blue
case 1: spellId = 66739; break; // tresher
case 2: spellId = 66738; break; // mako
}
}
if (spellId)
m_caster->CastSpell(m_caster, spellId, true);
return;
}
case 66744: // Make Player Destroy Totems case 66744: // Make Player Destroy Totems
{ {
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10614" #define REVISION_NR "10615"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__