mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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);
|
||||
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
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue