Skip to content

Commit

Permalink
[11999] Implement spell 45204
Browse files Browse the repository at this point in the history
Original author Wowka321, thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
  • Loading branch information
rsa authored and Schmoozerd committed Jun 11, 2012
1 parent 871a29a commit dc65d1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6893,6 +6893,14 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->RemoveAurasDueToSpell(46394);
return;
}
case 45204: // Clone Me!
{
if (!unitTarget)
return;

unitTarget->CastSpell(m_caster, m_spellInfo->CalculateSimpleValue(eff_idx), true);
return;
}
case 45206: // Copy Off-hand Weapon
{
if (m_caster->GetTypeId() != TYPEID_UNIT || !unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11998"
#define REVISION_NR "11999"
#endif // __REVISION_NR_H__

0 comments on commit dc65d1b

Please sign in to comment.