Skip to content

Commit

Permalink
[9441] Add dummy effect of spell 50133/43882
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Feb 23, 2010
1 parent 6e31eb8 commit 2376224
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions src/game/SpellEffects.cpp
Expand Up @@ -1155,6 +1155,15 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
return;
}
*/
case 43882: // Scourging Crystal Controller Dummy
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;

// see spell dummy 50133
unitTarget->RemoveAurasDueToSpell(43874);
return;
}
case 44875: // Complete Raptor Capture
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
Expand Down Expand Up @@ -1307,6 +1316,22 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
}
return;
}
case 50133: // Scourging Crystal Controller
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;

if (unitTarget->HasAura(43874))
{
// someone else is already channeling target
if (unitTarget->HasAura(43878))
return;

m_caster->CastSpell(unitTarget, 43878, true, m_CastItem);
}

return;
}
case 50243: // Teach Language
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9440"
#define REVISION_NR "9441"
#endif // __REVISION_NR_H__

0 comments on commit 2376224

Please sign in to comment.