mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[10615] Add script effect of spell 66741
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
a3c03eb919
commit
608815855f
2 changed files with 27 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue