[11999] Implement spell 45204

Original author Wowka321, thx to stfx for porting

Signed-off-by: stfx <stfx@hotmail.de>
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
rsa 2012-05-10 13:13:57 +02:00 committed by Schmoozerd
parent f13213018c
commit 1c1bc5c659
2 changed files with 9 additions and 1 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11998"
#define REVISION_NR "11999"
#endif // __REVISION_NR_H__